Skip navigation links
ilog.webui.dhtml.components
Class IlxWMenu
java.lang.Object
ilog.webui.dhtml.IlxWContainer
ilog.webui.dhtml.IlxWComponent
ilog.webui.dhtml.components.IlxWMenuItem
ilog.webui.dhtml.components.IlxWMenu
- All Implemented Interfaces:
- ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, Serializable
public class IlxWMenu
- extends IlxWMenuItem
A menu object is a pull-down menu component that is deployed from a menu
bar.
Each item in a menu must belong to the MenuItem
class. It can be
an instance of IlxWMenuItem
, or IlxWMenu
if it is a
submenu.
- See Also:
- Serialized Form
Constructor Summary |
IlxWMenu()
Constructs a new menu with an empty label. |
IlxWMenu(String text)
Constructs a new menu with the specified label. |
Methods inherited from class ilog.webui.dhtml.IlxWComponent |
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate |
Methods inherited from class ilog.webui.dhtml.IlxWContainer |
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, 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 |
IlxWMenu
public IlxWMenu()
- Constructs a new menu with an empty label.
IlxWMenu
public IlxWMenu(String text)
- Constructs a new menu with the specified label.
- Parameters:
text
- The menu label in the menu bar or in another menu
of which this menu is a submenu.
add
public IlxWMenuItem add(IlxWMenuItem item)
- Adds the specified menu item to this menu.
- Parameters:
item
- The menu item to be added.
addSeparator
public void addSeparator()
- Adds a separator to this menu.
printComponent
protected void printComponent(IlxWPort port)
throws IOException
- Description copied from class:
IlxWComponent
- Prints the HTML code that will display the graphical
representation of this component.
This method is called by the
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
- Overrides:
printComponent
in class IlxWMenuItem
- Throws:
IOException
- Parameters:
port
- The port on which the component will be printed.- See Also:
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
Skip navigation links
© Copyright IBM Corp. 1987, 2013