|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.gui.field.NavigationMenu.MenuItem
Class that contains each Item displayed into the MenuGroup of the NavigationMenu.
| Field Summary | |
protected boolean |
enabled
Boolean that determines if the Item will be enabled or not. |
protected javax.swing.ImageIcon |
icon
ImageIcon of the Item. |
protected java.lang.String |
manager
Identifier of the Item (String). |
protected boolean |
visible
Boolean that determines if the Item will be visible or not. |
| Constructor Summary | |
NavigationMenu.MenuItem(java.lang.String manager,
javax.swing.ImageIcon icon)
Constructs a new MenuItem specifying the identifier and the ImageIcon of the MenuItem. |
|
NavigationMenu.MenuItem(java.lang.String manager,
javax.swing.ImageIcon icon,
boolean visible,
boolean enabled)
Constructs a new MenuItem specifying the identifier and the ImageIcon of the MenuItem. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
javax.swing.ImageIcon |
getIcon()
This method returns an ImageIcon with the icon of the MenuItem. |
java.lang.String |
getManager()
This method returns a String with the identifier of the MenuItem. |
boolean |
isEnabled()
This method returns if the MenuItem is enabled. |
boolean |
isVisible()
This method returns if the MenuItem is visible. |
void |
setEnable(boolean enabled)
This method sets the availability of the MenuItem. |
void |
setIcon(javax.swing.ImageIcon icon)
This method sets the icon of the MenuItem. |
void |
setManager(java.lang.String manager)
This method establishes the String identifier of the MenuItem. |
void |
setVisible(boolean visible)
This method sets the visibility of the MenuItem. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String manager
protected javax.swing.ImageIcon icon
protected boolean visible
protected boolean enabled
| Constructor Detail |
public NavigationMenu.MenuItem(java.lang.String manager,
javax.swing.ImageIcon icon)
manager - String with the identifier of the MenuItem.icon - ImageIcon with the icon of the MenuItem.
public NavigationMenu.MenuItem(java.lang.String manager,
javax.swing.ImageIcon icon,
boolean visible,
boolean enabled)
manager - String with the identifier of the MenuItem.icon - ImageIcon with the icon of the MenuItem.visible - Boolean that sets the visibility of the MenuItem.enabled - Boolean that sets the availability of the MenuItme.| Method Detail |
public boolean isVisible()
boolean with the attribute visible.public void setVisible(boolean visible)
visible - boolean that indicates if the MenuItem is visible. If it is
true, the MenuItem will be visible.public boolean isEnabled()
boolean with the attribute enabled.public void setEnable(boolean enabled)
enabled - boolean that indicates if the MenuItem is enabled. If it is
true, the MenuItem will be enabled.public java.lang.String getManager()
String with the MenuItem identifier.public void setManager(java.lang.String manager)
manager - String with the identifier.public javax.swing.ImageIcon getIcon()
ImageIcon with the MenuItem icon.public void setIcon(javax.swing.ImageIcon icon)
icon - ImageIcon to the icon.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||