|
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.LySwingItem
public class LySwingItem
This class implements the Item object (as described in the dtd) for swing viewer.
A menu entry allows to execute an action like, as when using an action button. The entry can be of check box type (checkbox attribute) and can open a dialog window (dialog attribute).
LySwingMenu
,
LyItem
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingItem(LyItem item)
Class constructor of an Item object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Invoked when a menu item is activated. |
java.lang.Object |
createItem(boolean isCheckBox)
Creates a menu item with a checkbox if the item needs one. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.lang.Object |
getItem()
Gets the item component. |
LySelectionTransmitter |
getSelectionTransmitter()
This menu item doesn't handle selection events, so it has no selection transmitter. |
void |
initialize()
Initializes the item and sets its action listeners. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
Invoked when a checkboxed menu item is selected or unselected. |
void |
registerListeners()
Registers for item events. |
void |
setChecked(boolean checked)
Sets the checked state of the checkbox menu item without triggering the action listener. |
void |
setContent()
Initializes the item content info. |
void |
setEnabled(boolean enabled)
Sets the status of the menu. |
void |
setImage(java.lang.String image)
Sets the image icon for the menu item. |
void |
setLabel(java.lang.String label)
Sets the text label of this item. |
void |
setMnemonic(char mnemonic)
Sets the keyboard mnemonic for this item. |
void |
setShortCut(java.lang.String shortcut)
Sets the keyboard shortcut for this item. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getComponent, 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 LySwingItem(LyItem item)
item
- an ITEM component defined for every type of view targets. This item is
initialized for the Swing view specificaly and filled with the default values.Method Detail |
---|
public void initialize()
public void setContent()
public java.lang.Object createItem(boolean isCheckBox)
isCheckBox
- specify if this item has a checkBox or no
public java.lang.Object getItem()
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public void registerListeners()
public void setShortCut(java.lang.String shortcut)
shortcut
- a String representing the sequence of keys to presspublic void setMnemonic(char mnemonic)
mnemonic
- a character used as mnemonic for the itempublic void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalItem
setLabel
in interface LySetLabelInterface
label
- New value of label.LyGraphicalItem.setLabel(String)
public void setChecked(boolean checked)
setChecked
in interface LyGraphicalItem
checked
- new stateLyGraphicalItem.setChecked(boolean)
public void setEnabled(boolean enabled)
setEnabled
in interface LyGraphicalItem
setEnabled
in interface LySetEnabledInterface
enabled
- new statusLySetEnabledInterface.setEnabled(boolean)
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalItem
setImage
in interface LySetImageInterface
image
- Image of the item.LyGraphicalItem.setImage(String)
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
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 |