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, java.io.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 theadd(IlxWMenu)
method.- 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.components.IlxWMenuHolder
menuItemDescriptor, menuItemDisabled, menuItemHighlighted, menuItemNames, menuItemNormal, menuItemSeparator
-
Fields inherited from class ilog.webui.dhtml.IlxWContainer
listenerList
-
-
Constructor Summary
Constructors Constructor and Description IlxWMenuBar()
-
Method Summary
Methods Modifier and Type Method and Description IlxWMenu
add(IlxWMenu menu)
Adds a menu to this menu bar.protected void
doPrint(IlxWPort port)
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.void
setDHtml(boolean dhtml)
Sets the value of the DHTML style property.boolean
supportsDHtml(IlxWPort port)
Tells whether this component supports the DHTML mode according to the given port.-
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
-
-
-
-
Method Detail
-
doPrint
protected void doPrint(IlxWPort port) throws java.io.IOException
- Overrides:
doPrint
in classIlxWComponent
- Throws:
java.io.IOException
-
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.- Specified by:
printComponent
in classIlxWComponent
- Throws:
java.io.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 istrue
and if the component supports the DHTML mode (seesupportsDHtml(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 thesetAuthorRules
method.This method returns
null
by default but is intended to be redefined by subclasses.- Overrides:
getUserAgentRules
in classIlxWContainer
- Returns:
- a CSS ruleset.
- See Also:
IlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)
-
-