public class IlxWPopupMenu
extends ilog.webui.dhtml.components.IlxWMenuHolder
add(IlxWMenuItem) method.IlxWComponent.DynamicStyleMapmenuItemDescriptor, menuItemDisabled, menuItemHighlighted, menuItemNames, menuItemNormal, menuItemSeparatorlistenerList| Constructor and Description |
|---|
IlxWPopupMenu() |
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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.
|
java.lang.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.
|
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validateadd, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic IlxWMenuItem add(IlxWMenuItem menuItem)
menuItem - The JMenuItem to add.JMenuItem added.public IlxWComponent add(IlxWComponent component)
add in class IlxWContainerIllegalStateException - if the given component
already has a parent container.component - The component to be added.public IlxWMenuItem add(java.lang.String s)
s - The string for the menu item to be added.public void addSeparator()
public java.lang.String emitOnContextMenuJSCode(IlxWPort port)
oncontextmenu event.protected void printComponent(IlxWPort port) throws java.io.IOException
IlxWComponentIlxWComponent.print(ilog.webui.dhtml.IlxWPort) method.printComponent in class IlxWComponentjava.io.IOExceptionport - The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)protected IlxWCSSRuleset getUserAgentRules()
IlxWContainersetAuthorRules method.
This method returns null by default but is intended
to be redefined by subclasses.
getUserAgentRules in class IlxWContainerIlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)© Copyright IBM Corp. 1987, 2017