|
||||||||||
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.JMenuBar
com.jidesoft.action.DockableBar
com.jidesoft.action.CommandBar
com.jidesoft.action.CommandMenuBar
com.altair.hwm.guilibrary.AltairJMenuBar
com.altair.hwm.toolkit.utils.HWMMenuBarContainer
public class HWMMenuBarContainer
Title: HWMMenuBarContainer
Description: The menubar that contains the various menus
Company: Altair Engineering, Inc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.action.CommandBar |
---|
com.jidesoft.action.CommandBar.Expansion |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary |
---|
Fields inherited from class com.jidesoft.action.CommandBar |
---|
PROPERTY_MENU_BAR, PROPERTY_PAINT_BACKGROUND |
Fields inherited from class com.jidesoft.action.DockableBar |
---|
m, PROPERTY_ALLOWED_DOCK_SIDES, PROPERTY_FLOATABLE, PROPERTY_FLOATED, PROPERTY_HIDABLE, PROPERTY_HIDDEN, PROPERTY_HORI_DOCKED, PROPERTY_INIT_INDEX, PROPERTY_INIT_MODE, PROPERTY_INIT_SIDE, PROPERTY_INIT_SUBINDEX, PROPERTY_KEY, PROPERTY_REARRANGABLE, PROPERTY_STRETCH, PROPERTY_TITLE, PROPERTY_UNDOCKED_BOUNDS, PROPERTY_VERT_DOCKED |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HWMMenuBarContainer()
Constructor |
Method Summary | |
---|---|
void |
AddMenu(java.lang.String strName,
javax.swing.JMenu menu)
Add menu with given name as its ID |
void |
EnableMenu(java.lang.String strName,
boolean bEnable)
Enable/disable menu with given name |
void |
EnableMenuItem(java.lang.String strMenuName,
java.lang.String strMenuItemName,
boolean bEnable)
Enable/Disable menuitem with given name in the menu with given name |
void |
EnableMenuItems(java.lang.String strMenuName,
java.lang.String[] arrstrMenuItemName,
boolean bEnable)
Enable/Disable array of menuitem with given names present in the menu |
javax.swing.JMenu |
GetMenu(java.lang.String strName)
Get menu with given name |
java.awt.Component |
GetMenuItem(java.lang.String strMenuName,
java.lang.String strMenuItemName)
Returns menuitem with given name in the menu with given name |
void |
ShowMenu(java.lang.String strName,
boolean bShow)
Show/hide menu with given name |
void |
ShowMenuItem(java.lang.String strMenuName,
java.lang.String strMenuItemName,
boolean bShow)
Show/hide menuitem with given name in the menu with given name |
void |
ShowMenuItems(java.lang.String strMenuName,
java.lang.String[] arrstrMenuItemName,
boolean bShow)
Enable/Disable array of menuitem with given names present in the menu |
Methods inherited from class com.jidesoft.action.CommandBar |
---|
add, addExpansion, addSeparator, addSeparator, getAccessibleContext, getHiddenComponents, getMargin, getMenu, getMenuCount, getPreferredRowCount, getUI, getUIClassID, isBorderPainted, isMenuBar, isOpaque, isPaintBackground, isScreenMenuBar, remove, removeAll, removeAllHiddenComponents, setBorderPainted, setChangingContainer, setMargin, setMenuBar, setPaintBackground, setPreferredRowCount, setUI, updateUI, validateWindowIfFloating |
Methods inherited from class com.jidesoft.action.DockableBar |
---|
addDockableBarListener, getAllowedDockSides, getCanSide, getContext, getDockableBarListeners, getDockableBarManager, getDockID, getInitIndex, getInitMode, getInitSide, getInitSubindex, getKey, getOrientation, getTitle, getUndockedBounds, isFloatable, isFloating, isHidable, isHidden, isHoriDocked, isRearrangable, isStretch, isVertDocked, readElement, removeDockableBarListener, resetDockID, setAllowedDockSides, setCanSide, setContext, setDockableBarManager, setDockID, setFloatable, setFloating, setHidable, setHidden, setHoriDocked, setInitIndex, setInitMode, setInitSide, setInitSubindex, setKey, setLayout, setOrientation, setRearrangable, setStretch, setTitle, setUndockedBounds, setVertDocked, supportHorizontalOrientation, supportVerticalOrientation |
Methods inherited from class javax.swing.JMenuBar |
---|
add, addNotify, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getSelectionModel, getSubElements, isSelected, menuSelectionChanged, processKeyEvent, processMouseEvent, removeNotify, setHelpMenu, setSelected, setSelectionModel, setUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, 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, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HWMMenuBarContainer()
Method Detail |
---|
public void AddMenu(java.lang.String strName, javax.swing.JMenu menu)
strName
- The name for the menu (NOTE: not the display name)menu
- The menu to be addedpublic javax.swing.JMenu GetMenu(java.lang.String strName) throws java.lang.Exception
strName
- The name of the menu to return
java.lang.Exception
public void ShowMenu(java.lang.String strName, boolean bShow) throws java.lang.Exception
strName
- The name of the menu to show/hidebShow
- If true, the menu is shown else hidden
java.lang.Exception
public void EnableMenu(java.lang.String strName, boolean bEnable) throws java.lang.Exception
strName
- The name of the menu to enable/disablebEnable
- If true, the menu is enabled else disabled
java.lang.Exception
public java.awt.Component GetMenuItem(java.lang.String strMenuName, java.lang.String strMenuItemName) throws java.lang.Exception
strMenuName
- The name of the menu in which the menu item is presentstrMenuItemName
- The name of the menu item to return
java.lang.Exception
public void EnableMenuItem(java.lang.String strMenuName, java.lang.String strMenuItemName, boolean bEnable) throws java.lang.Exception
strMenuName
- The name of the menu in which the menu item is presentstrMenuItemName
- The name of the menu item to enable/disablebEnable
- If true, the menu is enabled else disabled
java.lang.Exception
public void EnableMenuItems(java.lang.String strMenuName, java.lang.String[] arrstrMenuItemName, boolean bEnable) throws java.lang.Exception
strMenuName
- The name of the menu in which the menu items are
presentarrstrMenuItemName
- The array of names of the menu items to
enable/disablebEnable
- If true, the menu is enabled else disabled
java.lang.Exception
public void ShowMenuItem(java.lang.String strMenuName, java.lang.String strMenuItemName, boolean bShow) throws java.lang.Exception
strMenuName
- The name of the menu in which the menu item is presentstrMenuItemName
- The name of the menu item to Show/hidebShow
- If true, the menu item is shown else hidden
java.lang.Exception
public void ShowMenuItems(java.lang.String strMenuName, java.lang.String[] arrstrMenuItemName, boolean bShow) throws java.lang.Exception
strMenuName
- The name of the menu in which the menu items are
presentarrstrMenuItemName
- The array of names of the menu items to
enable/disablebShow
- If true, the menu is shown else hidden
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |