|
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
javax.swing.JPanel
com.ontimize.gui.field.NavigationMenu
com.ontimize.gui.field.NavigatorMenuGUI
| Nested Class Summary | |
static class |
NavigatorMenuGUI.GroupSelectableItem
This class introduces a group of SelectableItem objects into a SelectableItem. |
static class |
NavigatorMenuGUI.InnerLabel
|
static class |
NavigatorMenuGUI.MenuGroupGUI
This class integrate Ontimize characteristics into the MenuGroup. |
static class |
NavigatorMenuGUI.MenuItemGUI
This class integrate Ontimize characteristics into the MenuItem. |
static class |
NavigatorMenuGUI.MenuItemInformation
This class is necessary to the visibility configuration of the MenuItems. |
static class |
NavigatorMenuGUI.SetupDialog
This class configures the JDialog in which the visibility of the MenuItems of the MenuGroups are configured. |
| Nested classes inherited from class com.ontimize.gui.field.NavigationMenu |
NavigationMenu.BasicMenuHeaderRenderer, NavigationMenu.DefaultMenuHeaderRenderer, NavigationMenu.DefaultMenuItemRenderer, NavigationMenu.MenuGroup, NavigationMenu.MenuHeaderRenderer, NavigationMenu.MenuItem, NavigationMenu.MenuItemRenderer |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| 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 ApplicationPreferences |
aPreferences
|
protected java.lang.Object |
attribute
|
protected java.util.ResourceBundle |
bundle
|
protected NavigatorMenuGUI.SetupDialog |
dialog
|
protected FormPermission |
enabledPermision
|
static java.lang.String |
NAVIGATOR_MENU
|
protected Form |
parentForm
|
protected javax.swing.JPopupMenu |
popupmenu
|
static java.lang.String |
RESTORE_DEFAULTS
|
protected boolean |
restricted
|
static java.lang.String |
SRC
|
static java.awt.BasicStroke |
stroke
|
protected java.lang.String |
userPrefs
|
static java.lang.String |
VISIBLE_ITEMS
|
protected FormPermission |
visiblePermission
|
| Fields inherited from class com.ontimize.gui.field.NavigationMenu |
BASICRENDERER, BGBODY, BGHEADER, bgImage, BLACK, BLUE, BORDER, BORDERCLASS, BORDERCOLOR, centerImage, CENTERIMAGE, CYAN, DARKBLUE, DARKGRAY, DRAGALLMENU, DRAGENABLE, EAST, ERROR_MESSAGE, fixImage, fixImagePosition, FIXIMG, FIXIMGPOSITION, FOREGROUND, FOREGROUNDHEADER, GRAY, GREEN, HEADER, HEADERHEIGHT, height, HEIGHT, ICONS, imageBasePath, IMAGEBASEPATH, IMG, LIGHTGRAY, MAGENTA, MENU_GROUP_HEADER_ICON, MENUGROUP, MENUGROUPCLASS, menuHeaderRenderer, MENUITEMCLASS, menuItemRenderer, menuList, mosaic, MOSAIC, NORTH, NORTH_EAST, NORTH_WEST, OPAQUE, OPTIONS, ORANGE, params, PINK, RED, ROOT_XML, SEPARATOR, SOUTH, SOUTH_EAST, SOUTH_WEST, useBasicRenderer, WEST, WHITE, width, WIDTH, X, Y, YELLOW |
| 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 com.ontimize.gui.SecureElement |
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP |
| Fields inherited from interface com.ontimize.gui.field.FormComponent |
DEBUG |
| Fields inherited from interface com.ontimize.gui.i18n.Internationalization |
DEBUG_LANGUAGE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS |
| Constructor Summary | |
NavigatorMenuGUI(java.util.Hashtable h)
Method that configures the component. |
|
| Method Summary | |
protected boolean |
checkEnabledPermission()
|
protected boolean |
checkVisiblePermission()
|
protected NavigationMenu.MenuGroup |
createMenuGroup(org.w3c.dom.Node node)
This method analyzes a "MenuGroup" node of the XML Document configuration to obtain all the parameter to build a new MenuGroupGUI into the NavigationMenu. |
protected NavigatorMenuGUI.MenuGroupGUI |
createMenuGroupInstance(java.util.Hashtable parameters)
This method instantiates a new MenuGroupGUI object with the specified parameters. |
protected NavigationMenu.MenuGroup |
createMenuGroupInstance(java.lang.String header,
java.lang.String[] opts,
javax.swing.ImageIcon[] icons,
int x,
int y,
int width,
int height,
java.awt.Color bgHeader,
java.awt.Color bgBody,
java.awt.Color fg,
java.awt.Color border)
Deprecated. |
java.lang.Object |
getAttribute()
Gets the object attribute. |
java.lang.Object |
getConstraints(java.awt.LayoutManager parentLayout)
Description method to return the constraints component to
place correctly in parent container.
|
protected java.lang.String |
getNavigationMenuPreferenceKey()
This method returns a unequivocal key name to assign to this MenuNavigator that will be used into the Preferences. |
protected java.lang.String |
getNavigationMenuPreferenceValue()
This method obtains the current values of MenuGroups and builds a String with the preference values of these MenuGroups. |
java.lang.String |
getPreferenceItems(NavigationMenu.MenuItem[] items)
This is an auxiliary method to check the visibility value of the MenuItem and builds a String with them to be used into the preference values. |
java.lang.String |
getPreferencesStructure(java.util.ArrayList menulist)
This method obtains the current visibility values of the MenuItems of the MenuGroups and builds a String to be used into the preference values. |
java.awt.Dimension |
getPreferredSize()
This method obtains the preferred size of the background image of the NavigationMenu. |
java.util.Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated. |
void |
init(java.util.Hashtable arguments)
This method gets the Hashtable and initializes the component
|
void |
initPermissions()
|
void |
initPreferences(ApplicationPreferences ap,
java.lang.String user)
|
protected void |
installMouseHandler()
|
boolean |
isRestricted()
|
protected void |
resizeMenuGroup(java.lang.String header)
This method resizes the specified MenuGroup. |
protected void |
saveNavigationMenuPreference()
|
protected void |
saveNavigationMenuPreference(boolean bSaveRemote)
This method save the current preference values. |
void |
setComponentLocale(java.util.Locale l)
|
protected void |
setDefaultValues()
This method restore the default values of the MenuGroups of the NavigationMenu. |
protected void |
setMenuGroupValue(java.lang.String name,
int x,
int y)
This method establishes the position (x,y) of the specified MenuGroup |
protected void |
setMenuGroupValue(java.lang.String name,
java.lang.String manager,
boolean visibility)
This method establishes the visibility of the MenuItems of the specified MenuGroup. |
protected void |
setNavigationMenuPreferenceValue(java.lang.String value)
This method recovers the preference values from the specified String and sets them to the MenuGroup. |
void |
setParentForm(Form form)
Method declaration to set the form that contains the component. |
void |
setResourceBundle(java.util.ResourceBundle bundle)
Sets the language resource bundle. |
protected void |
showPopupMenu(java.awt.event.MouseEvent e)
This method shows a PopupMenu when a right mouse button click is done. |
void |
updateVisibleItemsValues(java.util.Hashtable data)
This method updates the visibility values of each MenuItem of each MenuGroup with the information contained into the Hashtable received. |
| Methods inherited from class com.ontimize.gui.field.NavigationMenu |
add, colorRGBHexToColor, colorRGBToColor, getComponent, getComponents, getNode, isCenterImage, isTag, paintComponent, paintFixImageToPosition, parse, parseColor, setCenterImage, setMenuHeaderRenderer, setMenuItemRenderer |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| 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, 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, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, 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 |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponentAt, getComponentAt, getComponentCount, 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, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, 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 |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
isEnabled, setEnabled, setVisible |
| Field Detail |
public static final java.lang.String SRC
protected java.lang.Object attribute
protected FormPermission visiblePermission
protected FormPermission enabledPermision
protected Form parentForm
protected boolean restricted
public static final java.lang.String NAVIGATOR_MENU
protected javax.swing.JPopupMenu popupmenu
protected java.util.ResourceBundle bundle
public static final java.lang.String RESTORE_DEFAULTS
public static final java.lang.String VISIBLE_ITEMS
protected NavigatorMenuGUI.SetupDialog dialog
protected ApplicationPreferences aPreferences
protected java.lang.String userPrefs
public static java.awt.BasicStroke stroke
| Constructor Detail |
public NavigatorMenuGUI(java.util.Hashtable h)
throws java.lang.Exception
h - Hashtable with the parameters.
java.lang.Exception| Method Detail |
public java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container reference
public void init(java.util.Hashtable arguments)
throws java.lang.Exception
Hashtable and initializes the component
init in interface FormComponentarguments - the Hashtable with parameters
| attribute | values | default | required | meaning |
| attr | yes | Indicates the component attribute. | ||
| src | yes | Resource path to locate the configuration XML. |
java.lang.Exception - when Exception occursprotected void installMouseHandler()
public java.lang.Object getAttribute()
IdentifiedElement
getAttribute in interface IdentifiedElementpublic void initPermissions()
initPermissions in interface SecureElementprotected boolean checkVisiblePermission()
protected boolean checkEnabledPermission()
public boolean isRestricted()
isRestricted in interface SecureElementpublic void setParentForm(Form form)
AccessForm
setParentForm in interface AccessFormform - the form referencepublic java.util.Vector getTextsToTranslate()
Internationalization
getTextsToTranslate in interface Internationalizationpublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface Internationalization
protected NavigationMenu.MenuGroup createMenuGroup(org.w3c.dom.Node node)
throws java.lang.Exception
createMenuGroup in class NavigationMenunode - The "MenuGroup" node of the XML Document configuration.
MenuGroup object.
java.lang.Exceptionprotected NavigatorMenuGUI.MenuGroupGUI createMenuGroupInstance(java.util.Hashtable parameters)
MenuGroupGUI object.
protected NavigationMenu.MenuGroup createMenuGroupInstance(java.lang.String header,
java.lang.String[] opts,
javax.swing.ImageIcon[] icons,
int x,
int y,
int width,
int height,
java.awt.Color bgHeader,
java.awt.Color bgBody,
java.awt.Color fg,
java.awt.Color border)
throws java.lang.Exception
createMenuGroupInstance in class NavigationMenuheader - String with the text to display into the Header of the
MenuGroup.opts - 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.width - The width of the MenuGroup.height - The absolute height of the MenuGroup. The header height is
included into this height.bgHeader - The color of the MenuGroup Header.bgBody - The color of the background MenuGroup.fg - The color of the MenuGroup font.border - The color of the border of the MenuGroup. Use
createMenuGroupInstance(Hashtable parameters)
MenuGroup object.
java.lang.Exceptionpublic java.awt.Dimension getPreferredSize()
NavigationMenu
getPreferredSize in class NavigationMenuDimension object with the background image
dimensions.
public void initPreferences(ApplicationPreferences ap,
java.lang.String user)
initPreferences in interface HasPreferenceComponentprotected java.lang.String getNavigationMenuPreferenceKey()
String with the name.protected void saveNavigationMenuPreference(boolean bSaveRemote)
protected void saveNavigationMenuPreference()
protected java.lang.String getNavigationMenuPreferenceValue()
The preference values saved are:- position: The coordinates x and y of each MenuGroup.
- items: The current state of visibility of each MenuItem of each MenuGroup.
*
String with the preference values.
protected void setMenuGroupValue(java.lang.String name,
int x,
int y)
name - The name of the MenuGroup.x - The coordinate x of the MenuGroup.y - The coordinate y of the MenuGroup.
protected void setMenuGroupValue(java.lang.String name,
java.lang.String manager,
boolean visibility)
name - The name of the MenuGroup.manager - The identifier of the MenuItem of the MenuGroupvisibility - Boolean with the visibility value.protected void setNavigationMenuPreferenceValue(java.lang.String value)
value - Preference values String.public java.lang.String getPreferencesStructure(java.util.ArrayList menulist)
menulist - ArrayList with the whole MenuGroups of the NavigationMenu.
Stringpublic java.lang.String getPreferenceItems(NavigationMenu.MenuItem[] items)
items - An Array of MenuItem objects of a MenuGroup.
String.protected void resizeMenuGroup(java.lang.String header)
header - String with the header name of the MenuGroup.protected void setDefaultValues()
public void setResourceBundle(java.util.ResourceBundle bundle)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class NavigationMenubundle - The ResourceBundle.protected void showPopupMenu(java.awt.event.MouseEvent e)
e - Mouse event.public void updateVisibleItemsValues(java.util.Hashtable data)
data - HashTable with the MenuItem visibility information. Pair values like:
| key | values |
| "MenuGroupName" | MenuItemInformation Object |
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||