|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.ontimize.gui.field.NavigationMenu.MenuGroup
com.ontimize.gui.field.NavigatorMenuGUI.MenuGroupGUI
This class integrate Ontimize characteristics into the MenuGroup.
| 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 |
protected int defaultX
protected int defaultY
| Constructor Detail |
public NavigatorMenuGUI.MenuGroupGUI(java.util.Hashtable parameters)
parameters - Hashtable with the whole parameters.
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)
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 |
protected void createMenuItems(java.util.Hashtable parameters)
NavigationMenu.MenuGroup
createMenuItems in class NavigationMenu.MenuGroupparameters - 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 |
protected javax.swing.border.Border getBorder(java.lang.String border)
border - String with the border style.
Border object.public void setDefaultValue()
public void setVisibleItems(java.lang.String manager,
boolean visibility)
manager - The identifier of the MenuItem.visibility - Boolean with the visibility value of the MenuItem.public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
protected void installMouseHandler()
NavigationMenu.MenuGroup
installMouseHandler in class NavigationMenu.MenuGroupprotected void paintOptions(java.awt.Graphics g)
NavigationMenu.MenuGroup
paintOptions in class NavigationMenu.MenuGroupg - The Graphics of the MenuGroup.protected boolean checkVisiblePermission(NavigationMenu.MenuItem menuItem)
menuItem - The MenuItem to be checked.
boolean.protected boolean checkEnabledPermission(NavigationMenu.MenuItem menuItem)
menuItem - The MenuItem to be checked.
boolean.
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||