ilog.webui.dhtml.components
Class IlxWCheckBoxMenuItem
- java.lang.Object
-
- ilog.webui.dhtml.IlxWContainer
-
- ilog.webui.dhtml.IlxWComponent
-
- ilog.webui.dhtml.components.IlxWMenuItem
-
- ilog.webui.dhtml.components.IlxWCheckBoxMenuItem
-
- All Implemented Interfaces:
- ilog.webui.dhtml.IlxWConstants, ilog.webui.dhtml.IlxWCSSModelProvider, ilog.webui.dhtml.IlxWDependencyProvider, ilog.webui.dhtml.IlxWJSObject, java.io.Serializable
public class IlxWCheckBoxMenuItem extends IlxWMenuItem
A menu item that can be selected or deselected. If selected, the menu item typically appears with a check mark next to it. If unselected or deselected, the menu item appears without a check mark. Like a regular menu item, a check box menu item can have either text or a graphic icon associated with it, or both.- See Also:
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
Constructors Constructor and Description IlxWCheckBoxMenuItem()Creates an initially unselectedwith no set text or icon.checkboxMenuItemIlxWCheckBoxMenuItem(java.lang.String text)Creates an initially unselectedcheckboxMenuItemwith text.IlxWCheckBoxMenuItem(java.lang.String text, boolean b)Creates a check box menu item with the specified text and selection state.IlxWCheckBoxMenuItem(java.lang.String text, java.lang.String icon)Creates an initially unselectedcheckboxMenuItemwith the specified text and icon.IlxWCheckBoxMenuItem(java.lang.String text, java.lang.String icon, boolean b)Creates a check box menu item with the specified text, icon, and selection state.
-
Method Summary
Methods Modifier and Type Method and Description booleanisSelected()Returns the selected state of the check box menu item.voidsetEnabled(boolean b)Enables (or disables) the menu item.voidsetSelected(boolean b)Sets the selected-state of the check box menu item.-
Methods inherited from class ilog.webui.dhtml.components.IlxWMenuItem
getAction, getIcon, getText, isEnabled, isRoot, notifyDependencies, printComponent, setAction, 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
-
IlxWCheckBoxMenuItem
public IlxWCheckBoxMenuItem()
Creates an initially unselectedwith no set text or icon.checkboxMenuItem
-
IlxWCheckBoxMenuItem
public IlxWCheckBoxMenuItem(java.lang.String text)
Creates an initially unselectedcheckboxMenuItemwith text.- Parameters:
text- The text of the check box menu item.
-
IlxWCheckBoxMenuItem
public IlxWCheckBoxMenuItem(java.lang.String text, java.lang.String icon)Creates an initially unselectedcheckboxMenuItemwith the specified text and icon.- Parameters:
text- The text of the menu item.icon- The icon of the menu item.
-
IlxWCheckBoxMenuItem
public IlxWCheckBoxMenuItem(java.lang.String text, boolean b)Creates a check box menu item with the specified text and selection state.- Parameters:
text- The text of the check box menu item.b- The selected state of the check box menu item.
-
IlxWCheckBoxMenuItem
public IlxWCheckBoxMenuItem(java.lang.String text, java.lang.String icon, boolean b)Creates a check box menu item with the specified text, icon, and selection state.- Parameters:
text- The text of the check box menu item.icon- The icon of the check box menu item.b- The selected state of the check box menu item.
-
-
Method Detail
-
setSelected
public void setSelected(boolean b)
Sets the selected-state of the check box menu item.
-
setEnabled
public void setEnabled(boolean b)
Description copied from class:IlxWMenuItemEnables (or disables) the menu item.- Overrides:
setEnabledin classIlxWMenuItem
-
isSelected
public boolean isSelected()
Returns the selected state of the check box menu item.- Returns:
trueif the check box menu item is selected,falseif it is not.
-
-