|
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.LySwingCommand
public class LySwingCommand
This class implements the Command object (as described in the dtd) for swing viewer.
A command button allows to execute an action. There are predefined types of command giving information about the nature of the action to execute (closing, cancellation, help, etc.).
LyCommand
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingCommand(LyCommand command)
Class constructor of a command object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Component |
createButton(java.lang.String label,
java.awt.Image image,
java.awt.Font font)
Creates and configures a button for the triggering of this object's command. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
LySelectionTransmitter |
getSelectionTransmitter()
This button doesn't handle selection events, so it has no selection transmitter. |
void |
initialize()
Initializes this object. |
void |
registerEvents()
Register the events for this command. |
void |
setEnabled(boolean status)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
(non-Javadoc). |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, free, 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 |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingCommand(LyCommand command)
command
- a COMMAND component defined for every type of view targets. This command
component is initialized specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setEnabled(boolean status)
setEnabled
in interface LyGraphicalCommand
setEnabled
in interface LySetEnabledInterface
status
- Boolean indicating if attribute enabled is set or unset.LySetEnabledInterface.setEnabled(boolean)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
null
LyEventTransmitter.getSelectionTransmitter()
public java.awt.Component createButton(java.lang.String label, java.awt.Image image, java.awt.Font font)
label
- the label to display on the buttonimage
- the image to display on the buttonfont
- the font to used to draw the label
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalCommand
setLabel
in interface LySetLabelInterface
label
- New value of label.LySetLabelInterface.setLabel(java.lang.String)
public void registerEvents()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |