public class MenuItem extends Component
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_CLICK |
backgroundColor, caption, color, disabled, EVENT_BEFORE_REFRESH_VIEW, EVENT_BEFORE_UPDATE_VIEW, EVENT_STATE_CHANGE, EVENT_VALUE_CHANGE, font, id, name, readOnly, visible| Constructor and Description |
|---|
MenuItem() |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(Visitor visitor) |
void |
addClickListener(EventListener listener) |
void |
click() |
int |
getMenuDepth()
the depth from menu bar.
|
void |
updateView()
sync values from model to view.
|
addChild, addChild, addChildren, addEventListener, clearEventListener, containsListener, destroy, existsEventListener, findWindow, forceUpdateView, getBackgroundColor, getCaption, getChildComponentById, getChildComponentByName, getChildrenComponents, getColor, getComponentByClass, getExtraAttribute, getExtraAttributes, getFont, getFont, getId, getModel, getName, getWindow, hide, isDisabled, isReadOnly, isVisible, isWindow, notifyEventListeners, notifyEventListeners, removeChild, removeEventListener, removeExtraAttribute, setBackgroundColor, setCaption, setColor, setDisabled, setExtraAttribute, setFont, setId, setModel, setModel, setName, setReadOnly, setVisible, show, toString, tranverse, updateModeladdChild, addChild, addChildren, checkConsistency, copy, detach, getChildren, getDepth, getParent, getRoot, isLeaf, isRoot, remove, removeAllChildren, removeChild, replace, replaceSingleNode, setChildren, setParentpublic static final String EVENT_CLICK
public void addClickListener(EventListener listener)
public void click()
public void updateView()
ComponentupdateView in class Componentpublic int getMenuDepth()
Copyright © 2015. All Rights Reserved.