Skip navigation links
ilog.webui.dhtml.components
Class IlxWMenuBar
java.lang.Object
ilog.webui.dhtml.IlxWContainer
ilog.webui.dhtml.IlxWComponent
ilog.webui.dhtml.components.IlxWMenuHolder
ilog.webui.dhtml.components.IlxWMenuBar
All Implemented Interfaces: ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, Serializable
public class IlxWMenuBar extends ilog.webui.dhtml.components.IlxWMenuHolder
An implementation of a menu bar.
A menu bar contains a set of menus that can be added
with the add(IlxWMenu)
method.
See Also: Serialized Form
Fields inherited from class ilog.webui.dhtml.components.IlxWMenuHolder
menuItemDescriptor, menuItemDisabled, menuItemHighlighted, menuItemNames, menuItemNormal, menuItemSeparator
Methods inherited from class ilog.webui.dhtml.components.IlxWMenuHolder
printJSClient
Methods inherited from class ilog.webui.dhtml.IlxWComponent
addPropertyChangeListener , addPropertyChangeListener , detach , firePropertyChange , firePropertyChange , getName , getRealHtmlTagName , getStyle , invalidate , isInvalidated , notifyDependencies , print , removePropertyChangeListener , removePropertyChangeListener , setName , validate
Methods inherited from class ilog.webui.dhtml.IlxWContainer
add , 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
IlxWMenuBar
public IlxWMenuBar ()
doPrint
protected void doPrint (IlxWPort port)
throws IOException
Overrides: doPrint
in class IlxWComponent
Throws:
IOException
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.
Specified by: printComponent
in class IlxWComponent
Throws:
IOException
Parameters: port
- The port on which the component will be printed.See Also: IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
setDHtml
public void setDHtml (boolean dhtml)
Sets the value of the DHTML style property.
If the DHTML property is true
and if the component
supports the DHTML mode (see supportsDHtml(ilog.webui.dhtml.IlxWPort)
), the menu bar
will be displayed as as a lightweight
DHTML menu bar.
Otherwise, the menu bar will be displayed with as a list of
<select>
HTML element.
Parameters: dhtml
- if true, the component will be displayed in DHTML
mode if the component supports the DHTML mode.
supportsDHtml
public boolean supportsDHtml (IlxWPort port)
Tells whether this component supports the DHTML mode
according to the given port.
Parameters: port
- the current port
Returns: true if the component supports the DHTML mode
getUserAgentRules
protected IlxWCSSRuleset getUserAgentRules ()
Description copied from class: IlxWContainer
Gets the "user-agent" CSS rules.
User agent rules are a set of CSS rules which will apply by default
to each instance of this container. They may be completed or
overridden by the author rules, set via the
setAuthorRules
method.
This method returns null
by default but is intended
to be redefined by subclasses.
Overrides: getUserAgentRules
in class IlxWContainer
Returns: a CSS ruleset. See Also: IlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)
add
public IlxWMenu add (IlxWMenu menu)
Adds a menu to this menu bar.
Parameters: menu
- The menu to add.
Returns: The added menu.
Skip navigation links
© Copyright IBM Corp. 1987, 2013