public abstract class HTMLMenuItem extends HTMLContainer
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX| Constructor and Description | 
|---|
HTMLMenuItem()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getDepth()
This method is to get menu item 's level 
 | 
java.lang.String | 
getId()
Get object's Id 
 | 
HTMLComponent | 
getLabel()
This method is to return menu item's label 
 | 
HTMLMenuBar | 
getMenuBar()
This method is to return menu bar 
 | 
boolean | 
isSelected()
This method is to return if the menu item is selected 
 | 
void | 
setLabel(HTMLComponent label)
This method is to set menu item's label 
 | 
void | 
setMenuBar(HTMLMenuBar menuBar)
This method is to set menu bar 
 | 
void | 
setSelected(boolean isSelected)
This method is to set if the menu item is selected 
 | 
addComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponentaddJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, compile, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerate, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touch@CheckReturnValue @Nullable public java.lang.String getId()
getId in class HTMLComponentpublic void setMenuBar(HTMLMenuBar menuBar)
menuBar - - menu bar that this menu item is onpublic void setSelected(boolean isSelected)
isSelected - - if the  menu item is selectedpublic HTMLMenuBar getMenuBar()
public boolean isSelected()
public void setLabel(HTMLComponent label)
label - - Menu item's labelpublic HTMLComponent getLabel()
public int getDepth()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.