public class IlxWCheckBoxMenuItem extends IlxWMenuItem
IlxWMenuBar,
Serialized FormIlxWComponent.DynamicStyleMaplistenerList| Constructor and Description |
|---|
IlxWCheckBoxMenuItem()
Creates an initially unselected
with no set text or
icon. |
IlxWCheckBoxMenuItem(java.lang.String text)
Creates an initially unselected
checkboxMenuItem with 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 unselected
checkboxMenuItem with 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected()
Returns the selected state of the check box menu item.
|
void |
setEnabled(boolean b)
Enables (or disables) the menu item.
|
void |
setSelected(boolean b)
Sets the selected-state of the check box menu item.
|
getAction, getIcon, getText, isEnabled, isRoot, notifyDependencies, printComponent, setAction, setIcon, setTextaddPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, print, removePropertyChangeListener, removePropertyChangeListener, setName, validateadd, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, getUserAgentRules, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizerpublic IlxWCheckBoxMenuItem()
checkboxMenuItem with no set text or
icon.public IlxWCheckBoxMenuItem(java.lang.String text)
checkboxMenuItem with text.text - The text of the check box menu item.public IlxWCheckBoxMenuItem(java.lang.String text,
java.lang.String icon)
checkboxMenuItem with the specified
text and icon.text - The text of the menu item.icon - The icon of the menu item.public IlxWCheckBoxMenuItem(java.lang.String text,
boolean b)
text - The text of the check box menu item.b - The selected state of the check box menu item.public IlxWCheckBoxMenuItem(java.lang.String text,
java.lang.String icon,
boolean b)
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.public void setSelected(boolean b)
public void setEnabled(boolean b)
IlxWMenuItemsetEnabled in class IlxWMenuItempublic boolean isSelected()
true if the check box menu item is selected,
false if it is not.© Copyright IBM Corp. 1987, 2017