|
||||||||||
| PREV CLASS Documentation homepage 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
ilog.views.appframe.swing.IlvMenuBar
public class IlvMenuBar
Defines menu bars that read their content from the settings.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JMenuBar |
|---|
JMenuBar.AccessibleJMenuBar |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
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. |
| 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 | |
|---|---|
IlvMenuBar()
Constructs a new IlvMenuBar. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.swing.JMenuBar |
|---|
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, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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.
| Constructor Detail |
|---|
public IlvMenuBar()
IlvMenuBar.
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||