public static class NavigatorMenuGUI.MenuItemGUI extends NavigationMenu.MenuItem
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabledPermission
Boolean that specifies if this MenuItemGUI is enabled in accordance
with the Ontimize Permissions.
|
protected boolean |
visiblePermission
Boolean that specifies if this MenuItemGUI is visible in accordance
with the Ontimize Permissions.
|
enabled, icon, manager, visible| Constructor and Description |
|---|
NavigatorMenuGUI.MenuItemGUI(String manager,
ImageIcon icon)
Constructs a new MenuItemGUI specifying the identifier and the icon
of the MenuItmeGUI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
boolean |
isEnabled()
This method returns if the MenuItem is enabled.
|
boolean |
isEnabledPermission()
This method returns if the MenuItemGUI is enabled according to the
Ontimize Permissions.
|
boolean |
isVisible()
This method returns if the MenuItem is visible.
|
boolean |
isVisiblePermission()
This method returns if the MenuItemGUI is visible according to the
Ontimize Permissions.
|
void |
setEnabledPermission(boolean enabledPermission)
This method sets if the MenuItemGUI is enabled according to the
Ontimize Permissions.
|
void |
setVisiblePermission(boolean visiblePermission)
This method sets if the MenuItemGUI is visible according to the
Ontimize Permissions.
|
getIcon, getManager, setEnable, setEnabled, setIcon, setManager, setVisibleprotected boolean visiblePermission
protected boolean enabledPermission
public NavigatorMenuGUI.MenuItemGUI(String manager, ImageIcon icon)
manager - String with the identifier of the MenuItemGUI. That is,
the manager associated to this MenuItem.icon - ImageIcon with the icon of the MenuItemGUI.public boolean isVisiblePermission()
boolean.public void setVisiblePermission(boolean visiblePermission)
visiblePermission - boolean.public boolean isEnabledPermission()
boolean.public void setEnabledPermission(boolean enabledPermission)
enabledPermission - boolean.public boolean isVisible()
NavigationMenu.MenuItemisVisible in class NavigationMenu.MenuItemboolean with the attribute visible.public boolean isEnabled()
NavigationMenu.MenuItemisEnabled in class NavigationMenu.MenuItemboolean with the attribute enabled.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class NavigationMenu.MenuItemCopyright © 2016 Imatia Innovation S.L.. All rights reserved.