|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWMenuItem
public class IlxWMenuItem
An implementation of a menu item. A menu item is basically a button in a list. When the user selects such a "button", the associated action is performed.
A menu item must always be a descendant of a menu bar element: do not
try to call the print
method directly on a menu item; a menu
item cannot be printed unless its parent menu bar is printed.
IlxWMenuBar
,
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 | |
---|---|
IlxWMenuItem()
Creates a menu item with no predefined text or icon. |
|
IlxWMenuItem(String text)
Creates a menu item with text. |
|
IlxWMenuItem(String text,
String icon)
Creates a menu item with the supplied text and icon. |
Method Summary | |
---|---|
IlxWAction |
getAction()
Gets the action associated with this menu item. |
String |
getIcon()
Gets the icon of the menu item |
String |
getText()
Gets the text of the menu item. |
boolean |
isEnabled()
Specifies whether the menu item is disabled or not. |
boolean |
isRoot()
Tells whether the parent of this menu item is a menu bar. |
void |
notifyDependencies(IlxWPort port)
|
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical representation of this component. |
void |
setAction(IlxWAction action)
Sets the action associated with this menu item. |
void |
setEnabled(boolean enabled)
Enables (or disables) the menu item. |
void |
setIcon(String icon)
Sets the icon of the menu item. |
void |
setText(String text)
Sets the text of the menu item. |
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 |
---|
public IlxWMenuItem()
public IlxWMenuItem(String text)
text
- The text of the menu item.public IlxWMenuItem(String text, String icon)
text
- The text of the menu item.icon
- The icon of the menu item.Method Detail |
---|
public boolean isRoot()
true
if the parent component is a menu bar;
false
otherwise.public void setText(String text)
public String getText()
public void setIcon(String icon)
public String getIcon()
public void setEnabled(boolean enabled)
public boolean isEnabled()
true
if the menu item is enabled.public void setAction(IlxWAction action)
action
- The actionpublic IlxWAction getAction()
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class IlxWComponent
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
public void notifyDependencies(IlxWPort port)
notifyDependencies
in interface ilog.webui.dhtml.IlxWDependencyProvider
notifyDependencies
in class IlxWComponent
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |