Ontimize 5.2072EN

com.ontimize.gui.field
Class NavigatorMenuGUI.MenuGroupGUI

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended bycom.ontimize.gui.field.NavigationMenu.MenuGroup
                  extended bycom.ontimize.gui.field.NavigatorMenuGUI.MenuGroupGUI
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Enclosing class:
NavigatorMenuGUI

public static class NavigatorMenuGUI.MenuGroupGUI
extends NavigationMenu.MenuGroup

This class integrate Ontimize characteristics into the MenuGroup.

Author:
Imatia Innovation
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  int defaultX
          Default value to the x coordinate of the MenuGroupGUI
protected  int defaultY
          Default value to the y coordinate of the MenuGroupGUI
 
Fields inherited from class com.ontimize.gui.field.NavigationMenu.MenuGroup
actionListener, bgBody, bgHeader, border, borderColor, borderString, bundle, DEFAULT_BGBODY, DEFAULT_BGHEADER, DEFAULT_BORDERCOLOR, DEFAULT_FG, DEFAULT_FGHEADER, DEFAULT_FGSELECTIONCOLOR, DEFAULT_HEADER_HEIGHT, DEFAULT_MENUITEM_CLASS, DEFAULT_SELECTIONCOLOR, dragAllMenuEnabled, dragEnabled, foregroundColor, foregroundColorHeader, hasBorder, header, headerheight, icon, itemHeight, menuHeaderRenderer, menuItem, menuItemClass, menuItemRenderer, opaque, optionsOffset, selectedOption, separator
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
NavigatorMenuGUI.MenuGroupGUI(java.util.Hashtable parameters)
          Constructs a new MenuGroupGUI with the parameters specified into the hashtable.
NavigatorMenuGUI.MenuGroupGUI(java.lang.String header, java.lang.String[] options, javax.swing.ImageIcon[] icons, int x, int y, int w, int h, java.awt.Color bgH, java.awt.Color bgB, java.awt.Color fg, java.awt.Color borderColor)
          Deprecated.  
 
Method Summary
protected  boolean checkEnabledPermission(NavigationMenu.MenuItem menuItem)
          This method checks the availibility of the specified MenuItem according to Ontimize Permissions.
protected  boolean checkVisiblePermission(NavigationMenu.MenuItem menuItem)
          This method checks the visibility of the specified MenuItem according to Ontimize Permissions.
protected  void createMenuItems(java.util.Hashtable parameters)
          This method creates all the MenuItems of the MenuGroup.
protected  javax.swing.border.Border getBorder(java.lang.String border)
          This method returns a Border object from a String with the border style.
 java.lang.String getToolTipText(java.awt.event.MouseEvent event)
           
protected  void installMouseHandler()
          This method installs the Handler of Mouse Listeners.
protected  void paintOptions(java.awt.Graphics g)
          This method establishes the paint options to paint each MenuItem of the MenuGroup using the MenuItemRenderer assigned to the MenuGroup.
 void setDefaultValue()
           
 void setVisibleItems(java.lang.String manager, boolean visibility)
          This method establishes the visibility of the given MenuItem identifier.
 
Methods inherited from class com.ontimize.gui.field.NavigationMenu.MenuGroup
getBgHeader, getForegroundColorHeader, getHeader, getHeaderHeight, getItemHeight, getMenuAt, getMenuItem, getOptionAt, getOptionIndex, getX, getY, isOpaque, isVisible, move, paintComponent, reBound, setActionListener, setItemHeight, setMenuGroupBounds, setMenuHeaderRenderer, setMenuItem, setMenuItemRenderer, setResourceBundle, setXY
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultX

protected int defaultX
Default value to the x coordinate of the MenuGroupGUI


defaultY

protected int defaultY
Default value to the y coordinate of the MenuGroupGUI

Constructor Detail

NavigatorMenuGUI.MenuGroupGUI

public NavigatorMenuGUI.MenuGroupGUI(java.util.Hashtable parameters)
Constructs a new MenuGroupGUI with the parameters specified into the hashtable.

Parameters:
parameters - Hashtable with the whole parameters.

NavigatorMenuGUI.MenuGroupGUI

public NavigatorMenuGUI.MenuGroupGUI(java.lang.String header,
                                     java.lang.String[] options,
                                     javax.swing.ImageIcon[] icons,
                                     int x,
                                     int y,
                                     int w,
                                     int h,
                                     java.awt.Color bgH,
                                     java.awt.Color bgB,
                                     java.awt.Color fg,
                                     java.awt.Color borderColor)
Deprecated.  

Constructs a new MenuGroupGUI with the specified parameters.

Parameters:
header - String with the text to display into the Header of the MenuGroup.
options - String Array with the identifier of each MenuItem of the MenuGroup.
icons - ImageIcon Array with the icons to each MenuItem of the MenuGroup.
x - The coordinate x of the MenuGroup into the NavigationMenu.
y - The coordinate y of the MenuGroup into the NavigationMenu.
w - The width of the MenuGroup.
h - The absolute height of the MenuGroup. The header height is included into this height.
bgH - The color of the MenuGroup Header.
bgB - The color of the background MenuGroup.
fg - The color of the MenuGroup font.
borderColor - The color of the border of the MenuGroup. Use #MenuGroupGUI(Hashtable parameters)
Method Detail

createMenuItems

protected void createMenuItems(java.util.Hashtable parameters)
Description copied from class: NavigationMenu.MenuGroup
This method creates all the MenuItems of the MenuGroup.

Overrides:
createMenuItems in class NavigationMenu.MenuGroup
Parameters:
parameters - the Hashtable with the whole parameters to configure the MenuItem.

attribute values default required meaning
menuitemclass "com.ontimize.gui.field.NavigatorMenuGUI$MenuItemGUI" no The class of the MenuItem

getBorder

protected javax.swing.border.Border getBorder(java.lang.String border)
This method returns a Border object from a String with the border style.

Parameters:
border - String with the border style.
Returns:
a Border object.

setDefaultValue

public void setDefaultValue()

setVisibleItems

public void setVisibleItems(java.lang.String manager,
                            boolean visibility)
This method establishes the visibility of the given MenuItem identifier.

Parameters:
manager - The identifier of the MenuItem.
visibility - Boolean with the visibility value of the MenuItem.

getToolTipText

public java.lang.String getToolTipText(java.awt.event.MouseEvent event)

installMouseHandler

protected void installMouseHandler()
Description copied from class: NavigationMenu.MenuGroup
This method installs the Handler of Mouse Listeners. The MouseMotionListener and MouseListerner are added to the MenuGroup.

Overrides:
installMouseHandler in class NavigationMenu.MenuGroup

paintOptions

protected void paintOptions(java.awt.Graphics g)
Description copied from class: NavigationMenu.MenuGroup
This method establishes the paint options to paint each MenuItem of the MenuGroup using the MenuItemRenderer assigned to the MenuGroup.

Overrides:
paintOptions in class NavigationMenu.MenuGroup
Parameters:
g - The Graphics of the MenuGroup.

checkVisiblePermission

protected boolean checkVisiblePermission(NavigationMenu.MenuItem menuItem)
This method checks the visibility of the specified MenuItem according to Ontimize Permissions. If it returns true it means that the MenuItem could be visible.

Parameters:
menuItem - The MenuItem to be checked.
Returns:
a boolean.

checkEnabledPermission

protected boolean checkEnabledPermission(NavigationMenu.MenuItem menuItem)
This method checks the availibility of the specified MenuItem according to Ontimize Permissions. If it returns true it means that the MenuItem could be enabled.

Parameters:
menuItem - The MenuItem to be checked.
Returns:
a boolean.

Ontimize