public class IlvMenuBar extends JMenuBar
JMenuBar.AccessibleJMenuBarJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MENUBAR_NAME
Default value of the
"name" attribute of the settings element
providing the settings of the menu bar. |
static String |
MENU_SETTINGS_TYPE
The type of the root settings element that provides the settings of
an
IlvMenuBar instance. |
static String |
MENUITEM_SETTINGS_TYPE
The type of the root settings element that provides the settings of
a
javax.swing.JMenuItem instance. |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
IlvMenuBar()
Constructs a new
IlvMenuBar. |
| Modifier and Type | Method and Description |
|---|---|
static Component |
AddActionItem(Action action,
Container container,
int index,
IlvApplication application)
Adds a new item to the specified container at the specified index.
|
static Component |
AddSeparator(Container container,
int index)
Adds a new separator within the specified container.
|
static JMenuItem |
CreateMenuItem(Action action,
IlvApplication application)
Creates a menu item for the specified action.
|
IlvApplication |
getApplication()
Returns the application associated with this menu bar.
|
IlvSettings |
getSettings()
Returns the settings that initialize the menu bar.
|
IlvSettingsElement |
getSettingsElement()
Returns the settings element that provides the settings for this
menu bar.
|
String |
getSettingsName()
Gets the name that identifies the bar within the settings.
|
IlvSettingsQuery |
getSettingsQuery()
Returns the query that selects the settings element that defines the
content of this menu bar.
|
void |
setApplication(IlvApplication application)
Sets the application of the menu bar.
|
void |
setSettings(IlvSettings settings)
Sets the settings that the menu bar uses to read its content.
|
void |
setSettingsElement(IlvSettingsElement element)
Forces the settings of the menu bar to be read and written from the
specified settings element.
|
void |
setSettingsName(String name)
Sets the name that identifies the menu bar within the settings of the
menu bar, set by invoking the method
setSettings(ilog.views.appframe.settings.IlvSettings). |
void |
setSettingsQuery(IlvSettingsQuery query)
Sets the query that selects the settings element that defines the
content of this menu bar.
|
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUIaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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, updateadd, 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, 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, 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, transferFocusUpCyclepublic static final String DEFAULT_MENUBAR_NAME
"name" attribute of the settings element
providing the settings of the menu bar.public static final String MENU_SETTINGS_TYPE
IlvMenuBar instance.public static final String MENUITEM_SETTINGS_TYPE
javax.swing.JMenuItem instance.public IlvApplication getApplication()
setApplication(ilog.views.appframe.IlvApplication)public void setApplication(IlvApplication application)
application - The new application of the menu bar.getApplication()public IlvSettings getSettings()
public void setSettings(IlvSettings settings)
settings - The new settings of the menu bar.public String getSettingsName()
setSettingsName(java.lang.String), the name of the
default menu bar defined in the Application Framework settings
will be returned.public void setSettingsName(String name)
setSettings(ilog.views.appframe.settings.IlvSettings).name - The new settings name of the menu bar.public void setSettingsQuery(IlvSettingsQuery query)
query - The settings query.getSettingsQuery()public IlvSettingsQuery getSettingsQuery()
null if no query has been specified using the
method setSettingsQuery(ilog.views.appframe.settings.IlvSettingsQuery) or if no settings name has been defined
using the method setSettingsName(java.lang.String).setSettingsQuery(ilog.views.appframe.settings.IlvSettingsQuery)public void setSettingsElement(IlvSettingsElement element)
getSettings() with the query getSettingsQuery().element - The settings element that provides the settings for the
menu bar.getSettingsElement()public IlvSettingsElement getSettingsElement()
setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement) method, it will be returned. Otherwise,
the settings element is selected from the settings given by the
getSettings() method, with the query returned by
getSettingsQuery().null if no settings
element could be found.setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement),
getSettingsQuery()public static Component AddActionItem(Action action, Container container, int index, IlvApplication application)
action - The action of the menu item to create.container - The container to create the new item in. This container
can be a pop-up menu, a menu bar, or a JMenu instance.index - the insertion index of the new component within its
parent container. If it is equal to -1, the new component
will be added at the last position in the children of the container.application - The application used for internationalization services.public static Component AddSeparator(Container container, int index)
container - The container to add a new separator to.index - The insertion index of the newly created separator. If this
index is equal to -1, the separator will be added after the last
component child of the container.public static JMenuItem CreateMenuItem(Action action, IlvApplication application)
action - The action to associate the new menu item with.application - The application used for internationalization services.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.