|
||||||||||
| 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.JPopupMenu
ilog.views.appframe.swing.IlvPopupMenu
public class IlvPopupMenu
Pop-up menu that is initialized from the settings.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPopupMenu |
|---|
JPopupMenu.AccessibleJPopupMenu, JPopupMenu.Separator |
| 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_POPUP_NAME
Default value of the "name"attribute of the settings element
that provides the settings of the pop-up. |
static String |
POPUP_SETTINGS_TYPE
The type of the root settings element that provides the settings of an IlvPopupMenu instance within the settings. |
| 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 | |
|---|---|
IlvPopupMenu()
Constructs a new IlvPopupMenu. |
|
| Method Summary | |
|---|---|
IlvApplication |
getApplication()
Gets the application associated with this menu bar. |
IlvSettings |
getSettings()
Gets the settings that the menu bar uses to read its content. |
IlvSettingsElement |
getSettingsElement()
Returns the settings element that provides the settings for this pop-up menu. |
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 toolbar. |
void |
setApplication(IlvApplication application)
Sets the application of the pop-up menu. |
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 pop-up menu 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 toolbar. |
void |
show(Component invoker,
int x,
int y)
Displays the pop-up menu at the position x,y in the coordinate space of the component invoker. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_POPUP_NAME
"name"attribute of the settings element
that provides the settings of the pop-up.
public static final String POPUP_SETTINGS_TYPE
IlvPopupMenu instance within the settings.
| Constructor Detail |
|---|
public IlvPopupMenu()
IlvPopupMenu.
| Method Detail |
|---|
public void show(Component invoker,
int x,
int y)
show in class JPopupMenuinvoker - The component where the pop-up menu is to appear.x - The x coordinate in the coordinate space of the invoker, at which
the pop-up menu is to be displayed.y - The y coordinate in the coordinate space of the invoker, at which
the pop-up menu is to be displayedpublic IlvApplication getApplication()
setApplication(ilog.views.appframe.IlvApplication)public void setApplication(IlvApplication application)
application - The new application of the pop-up menu.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 final 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
pop-up menu.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 can be found.setSettingsElement(ilog.views.appframe.settings.IlvSettingsElement),
getSettingsQuery()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||