Ontimize 5.2072EN

com.ontimize.gui.field
Class NavigatorMenuGUI.MenuItemGUI

java.lang.Object
  extended bycom.ontimize.gui.field.NavigationMenu.MenuItem
      extended bycom.ontimize.gui.field.NavigatorMenuGUI.MenuItemGUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
NavigatorMenuGUI

public static class NavigatorMenuGUI.MenuItemGUI
extends NavigationMenu.MenuItem

This class integrate Ontimize characteristics into the MenuItem.

Author:
Imatia Innovation

Field Summary
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.
 
Fields inherited from class com.ontimize.gui.field.NavigationMenu.MenuItem
enabled, icon, manager, visible
 
Constructor Summary
NavigatorMenuGUI.MenuItemGUI(java.lang.String manager, javax.swing.ImageIcon icon)
          Constructs a new MenuItemGUI specifying the identifier and the icon of the MenuItmeGUI.
 
Method Summary
 void actionPerformed(java.awt.event.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.
 
Methods inherited from class com.ontimize.gui.field.NavigationMenu.MenuItem
getIcon, getManager, setEnable, setIcon, setManager, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visiblePermission

protected boolean visiblePermission
Boolean that specifies if this MenuItemGUI is visible in accordance with the Ontimize Permissions.


enabledPermission

protected boolean enabledPermission
Boolean that specifies if this MenuItemGUI is enabled in accordance with the Ontimize Permissions.

Constructor Detail

NavigatorMenuGUI.MenuItemGUI

public NavigatorMenuGUI.MenuItemGUI(java.lang.String manager,
                                    javax.swing.ImageIcon icon)
Constructs a new MenuItemGUI specifying the identifier and the icon of the MenuItmeGUI.

Parameters:
manager - String with the identifier of the MenuItemGUI. That is, the manager associated to this MenuItem.
icon - ImageIcon with the icon of the MenuItemGUI.
Method Detail

isVisiblePermission

public boolean isVisiblePermission()
This method returns if the MenuItemGUI is visible according to the Ontimize Permissions. If it is true the MenuItemGUI is visible.

Returns:
a boolean.

setVisiblePermission

public void setVisiblePermission(boolean visiblePermission)
This method sets if the MenuItemGUI is visible according to the Ontimize Permissions.

Parameters:
visiblePermission - boolean.

isEnabledPermission

public boolean isEnabledPermission()
This method returns if the MenuItemGUI is enabled according to the Ontimize Permissions. If it is true the MenuItemGUI is enabled.

Returns:
a boolean.

setEnabledPermission

public void setEnabledPermission(boolean enabledPermission)
This method sets if the MenuItemGUI is enabled according to the Ontimize Permissions.

Parameters:
enabledPermission - boolean.

isVisible

public boolean isVisible()
Description copied from class: NavigationMenu.MenuItem
This method returns if the MenuItem is visible.

Overrides:
isVisible in class NavigationMenu.MenuItem
Returns:
a boolean with the attribute visible.

isEnabled

public boolean isEnabled()
Description copied from class: NavigationMenu.MenuItem
This method returns if the MenuItem is enabled.

Overrides:
isEnabled in class NavigationMenu.MenuItem
Returns:
a boolean with the attribute enabled.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class NavigationMenu.MenuItem

Ontimize