|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingTool
public class LySwingTool
This class implements the Action object (as described in the dtd) for swing viewer.
An action button allows to execute an action. In the case where the button contains an area (AREA), this area is displayed in a new window when launching the action.
LySwingToolBar
,
LyTool
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
LY_LABELED_TOOL_WIDTH
Width of the label tool. |
Constructor Summary | |
---|---|
LySwingTool(LyTool tool)
Class constructor of a Tool object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Component |
createTool()
Creates the new tool components: button, menu item or panel. |
void |
fillToolComponent()
Fills the tool area. |
void |
free()
(non-Javadoc). |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.awt.Component |
getAuxComponent()
Gets the auxiliary component of this component. |
java.awt.Component |
getComponent()
(non-Javadoc). |
LySelectionTransmitter |
getSelectionTransmitter()
This action button doesn't handle selection events, so it has no selection transmitter. |
void |
initialize()
Builds the tool component and registers its events. |
void |
setContent()
Fills the area if this tool has one. |
void |
setEnabled(boolean enabled)
Sets the status of the menu. |
void |
setImage(java.lang.String image)
Sets the new button image. |
void |
setLabel(java.lang.String label)
Sets the new button label. |
void |
setPressed(boolean pressed)
Updates attribute pressed to the given value. |
void |
setTooltip(java.lang.String tooltip)
Sets the new tooltip. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
public static int LY_LABELED_TOOL_WIDTH
Constructor Detail |
---|
public LySwingTool(LyTool tool)
tool
- a TOOL component defined for every type of view targets. This tool is initialized
specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public java.awt.Component createTool()
public void fillToolComponent()
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalTool
setImage
in interface LySetImageInterface
image
- the new image nameLySetImageInterface.setImage(String)
public java.awt.Component getAuxComponent()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalTool
setLabel
in interface LySetLabelInterface
label
- the new labelLySetLabelInterface.setLabel(String)
public void setPressed(boolean pressed)
setPressed
in interface LyGraphicalTool
pressed
- Boolean indicating if attribute pressed is set or unset.public void setEnabled(boolean enabled)
setEnabled
in interface LyGraphicalTool
setEnabled
in interface LySetEnabledInterface
enabled
- the new statusLySetEnabledInterface.setEnabled(boolean)
public void setTooltip(java.lang.String tooltip)
setTooltip
in interface LyGraphicalTool
tooltip
- the new tooltippublic void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LyGraphicalObject
LyFreeInterface.free()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
null
LyEventTransmitter.getSelectionTransmitter()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |