public static class NavigatorMenuGUI.MenuGroupGUI extends NavigationMenu.MenuGroup
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected int |
defaultX
Default value to the x coordinate of the MenuGroupGUI
|
protected int |
defaultY
Default value to the y coordinate of the MenuGroupGUI
|
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, separatoraccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
NavigatorMenuGUI.MenuGroupGUI(Hashtable parameters)
Constructs a new MenuGroupGUI with the parameters specified into the
hashtable.
|
NavigatorMenuGUI.MenuGroupGUI(String header,
String[] options,
ImageIcon[] icons,
int x,
int y,
int w,
int h,
Color bgH,
Color bgB,
Color fg,
Color borderColor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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(Hashtable parameters)
This method creates all the MenuItems of the MenuGroup.
|
protected Border |
getBorder(String border)
This method returns a Border object from a String with the border
style.
|
String |
getToolTipText(MouseEvent event) |
protected void |
installMouseHandler()
This method installs the Handler of Mouse Listeners.
|
protected void |
paintOptions(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(String manager,
boolean visibility)
This method establishes the visibility of the given MenuItem
identifier.
|
getBgHeader, getForegroundColorHeader, getHeader, getHeaderHeight, getItemHeight, getMenuAt, getMenuItem, getOptionAt, getOptionIndex, getX, getY, isOpaque, isVisible, move, paintComponent, reBound, setActionListener, setItemHeight, setMenuGroupBounds, setMenuHeaderRenderer, setMenuItem, setMenuItemRenderer, setResourceBundle, setXYaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected int defaultX
protected int defaultY
public NavigatorMenuGUI.MenuGroupGUI(Hashtable parameters)
parameters - Hashtable with the whole parameters.@Deprecated public NavigatorMenuGUI.MenuGroupGUI(String header, String[] options, ImageIcon[] icons, int x, int y, int w, int h, Color bgH, Color bgB, Color fg, 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)protected void createMenuItems(Hashtable parameters)
NavigationMenu.MenuGroupcreateMenuItems 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 Border getBorder(String border)
border - String with the border style.Border object.public void setDefaultValue()
public void setVisibleItems(String manager, boolean visibility)
manager - The identifier of the MenuItem.visibility - Boolean with the visibility value of the MenuItem.public String getToolTipText(MouseEvent event)
getToolTipText in class JComponentprotected void installMouseHandler()
NavigationMenu.MenuGroupinstallMouseHandler in class NavigationMenu.MenuGroupprotected void paintOptions(Graphics g)
NavigationMenu.MenuGrouppaintOptions 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.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.