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, java.io.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 ofIlxWMenuItem
, orIlxWMenu
if it is a submenu.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent
IlxWComponent.DynamicStyleMap
-
-
Field Summary
-
Fields inherited from class ilog.webui.dhtml.IlxWContainer
listenerList
-
-
Constructor Summary
Constructors Constructor and Description IlxWMenu()
Constructs a new menu with an empty label.IlxWMenu(java.lang.String text)
Constructs a new menu with the specified label.
-
Method Summary
Methods Modifier and Type Method and Description IlxWMenuItem
add(IlxWMenuItem item)
Adds the specified menu item to this menu.void
addSeparator()
Adds a separator to this menu.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.IlxWMenuItem
getAction, getIcon, getText, isEnabled, isRoot, notifyDependencies, setAction, setEnabled, setIcon, setText
-
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
-
-
-
-
Constructor Detail
-
IlxWMenu
public IlxWMenu()
Constructs a new menu with an empty label.
-
IlxWMenu
public IlxWMenu(java.lang.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.
-
-
Method Detail
-
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 java.io.IOException
Description copied from class:IlxWComponent
Prints the HTML code that will display the graphical representation of this component. This method is called by theIlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.- Overrides:
printComponent
in classIlxWMenuItem
- Throws:
java.io.IOException
- Parameters:
port
- The port on which the component will be printed.- See Also:
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
-
-