|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWMenuHolder ilog.webui.dhtml.components.IlxWPopupMenu
public class IlxWPopupMenu
An implementation of a popup menu.
A popup menu contains a set of menus that can be added
with the add(IlxWMenuItem)
method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary |
---|
Fields inherited from class ilog.webui.dhtml.components.IlxWMenuHolder |
---|
menuItemDescriptor, menuItemDisabled, menuItemHighlighted, menuItemNames, menuItemNormal, menuItemSeparator |
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlxWPopupMenu()
|
Method Summary | |
---|---|
IlxWComponent |
add(IlxWComponent component)
Adds the specified component to the end of this container. |
IlxWMenuItem |
add(IlxWMenuItem menuItem)
Appends the specified menu item to the end of this menu. |
IlxWMenuItem |
add(String s)
Creates a new menu item with the specified text and appends it to the end of this menu. |
void |
addSeparator()
Appends a new separator at the end of the menu. |
String |
emitOnContextMenuJSCode(IlxWPort port)
Emits the JavaScript string used to show the popup menu. |
protected IlxWCSSRuleset |
getUserAgentRules()
Gets the "user-agent" CSS rules. |
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical representation of this component. |
Methods inherited from class ilog.webui.dhtml.components.IlxWMenuHolder |
---|
printJSClient |
Methods inherited from class ilog.webui.dhtml.IlxWComponent |
---|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate |
Methods inherited from class ilog.webui.dhtml.IlxWContainer |
---|
add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlxWPopupMenu()
Method Detail |
---|
public IlxWMenuItem add(IlxWMenuItem menuItem)
menuItem
- The JMenuItem
to add.
JMenuItem
added.public IlxWComponent add(IlxWComponent component)
add
in class IlxWContainer
IllegalStateException
- if the given component
already has a parent container.component
- The component to be added.
public IlxWMenuItem add(String s)
s
- The string for the menu item to be added.public void addSeparator()
public String emitOnContextMenuJSCode(IlxWPort port)
oncontextmenu
event.
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class IlxWComponent
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
protected IlxWCSSRuleset getUserAgentRules()
IlxWContainer
setAuthorRules
method.
This method returns null
by default but is intended
to be redefined by subclasses.
getUserAgentRules
in class IlxWContainer
IlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |