@Component(tag="menuitem",widgetClass="Menuitem",parentTag={"menu","menupopup","menuitem"},childTag={@Component.ChildTag(value="menuitem"),@Component.ChildTag(value="menuheader"),@Component.ChildTag(value="menuseparator")},description="A single menu item.") public class Menuitem extends BaseMenuComponent
BaseLabeledComponent.ILabelPosition, BaseLabeledComponent.LabelPositionAll, BaseLabeledComponent.LabelPositionHorz, BaseLabeledComponent.LabelPositionNoneBaseComponent.SubComponent| Constructor and Description |
|---|
Menuitem() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCheckable()
Returns true if the menu item has an associated check box.
|
boolean |
isChecked()
Returns the checked state of the menu item.
|
void |
setCheckable(boolean checkable)
Set to true to associate a check box with the menu item.
|
void |
setChecked(boolean checked)
Sets the checked state of the menu item.
|
getImage, setImagegetLabel, getPosition, setLabel, setPosition_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireController@Component.PropertyGetter(value="checkable", description="True if the menu item has an associated check box.") public boolean isCheckable()
@Component.PropertySetter(value="checkable", defaultValue="false", description="True if the menu item has an associated check box.") public void setCheckable(boolean checkable)
checkable - True to associate a check box with the menu item.@Component.PropertyGetter(value="checked", description="The checked state of the menu item.") public boolean isChecked()
@Component.PropertySetter(value="checked", defaultValue="false", description="The checked state of the menu item.") public void setChecked(boolean checked)
checked - The checked state of the menu item.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.