Decision Center API

ilog.webui.dhtml.components
Class IlxWMenu

java.lang.Object
  extended by ilog.webui.dhtml.IlxWContainer
      extended by ilog.webui.dhtml.IlxWComponent
          extended by ilog.webui.dhtml.components.IlxWMenuItem
              extended by 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

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
IlxWMenu()
          Constructs a new menu with an empty label.
IlxWMenu(String text)
          Constructs a new menu with the specified label.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
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 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)

Decision Center API

© Copyright IBM Corp. 1987, 2013