|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.MenuItemNode
public class MenuItemNode
MenuItemNode extends Node and provides an implementation of MenuItemNodeInterface
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Fields inherited from class com.sas.models.Node |
|---|
children, defaultNodeStyle, expandedNodeText, externalUpdateSupported, hasChildren, nodeStyle, nodeText, nodeType, objectData |
| Constructor Summary | |
|---|---|
MenuItemNode()
Constructor of MenuItemNode. |
|
MenuItemNode(java.lang.String label)
Constructor of MenuItemNode |
|
MenuItemNode(java.lang.String label,
java.lang.String image)
Constructor of MenuItemNode |
|
MenuItemNode(java.lang.String label,
java.lang.String image,
java.lang.String url)
Constructor of MenuItemNode |
|
| Method Summary | |
|---|---|
void |
addNodeChild(SimpleNodeInterface node,
int index)
Adds a child at index. |
java.lang.String |
getAccessKey()
Gets the accesskey. |
java.lang.String |
getAlternateText()
Gets the alternate text. |
java.lang.String |
getCustomAction()
Returns custom action on the menu |
java.lang.String |
getDisabledImage()
Returns the disabledImage |
boolean |
getEnabled()
Returns the state for the current menu item. |
java.lang.String |
getImage()
Returns the image displayed on the menu item |
java.lang.String |
getLabel()
Returns the label on the menu item |
java.lang.String |
getStyleClassPrefix()
Gets the styleClassPrefix of the menu item |
java.lang.String |
getTabIndex()
Gets the tabindex. |
java.lang.String |
getTarget()
getTarget returns the value of the TARGET= argument used on the anchor tags generated. |
java.lang.String |
getTitle()
Gets the title of the href. |
java.lang.String |
getURL()
Returns the url associated with the menu item |
boolean |
getWrap()
Returns wheather the label is wrapped or not. |
void |
setAccessKey(java.lang.String value)
Sets the accesskey. |
void |
setAlternateText(java.lang.String value)
Sets the alternate text. |
void |
setCustomAction(java.lang.String action)
Sets a custom action on the menu |
void |
setDisabledImage(java.lang.String image)
Sets the disabled image that will be displayed when the menu is disabled |
void |
setEnabled(boolean enabled)
Sets the state for the current menu item |
void |
setImage(java.lang.String image)
Sets the image displayed in the menu item |
void |
setLabel(java.lang.String label)
Sets the label on the menu item |
void |
setStyleClassPrefix(java.lang.String styleClassPrefix)
Sets the styleClassPrefix of the menu item |
void |
setTabIndex(java.lang.String value)
Sets the tabindex. |
void |
setTarget(java.lang.String value)
Sets the value of the TARGET= argument used on the anchor tags generated. |
void |
setTitle(java.lang.String value)
Sets the title for the href. |
void |
setURL(java.lang.String url)
Sets the url associated with the menu item |
void |
setWrap(boolean wrap)
Sets true or false to determine wheather the label in the <td> tag is wrapped. |
| Methods inherited from interface com.sas.models.NodeInterface |
|---|
getNodeExpandedText, getNodeText, getNodeType |
| Methods inherited from interface com.sas.models.SimpleNodeInterface |
|---|
countNodeChildren, getNodeChild, getNodeChildCount, getNodeChildren, isLeafNode |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public MenuItemNode()
public MenuItemNode(java.lang.String label,
java.lang.String image,
java.lang.String url)
label - text label on the MenuItemNodeimage - image to display on MenuItemNodeurl - url to associate with MenuItemNode
public MenuItemNode(java.lang.String label,
java.lang.String image)
label - text label on the MenuItemNodeimage - image to display on the MenuItemNodepublic MenuItemNode(java.lang.String label)
label - text label on the MenuItemNode| Method Detail |
|---|
public java.lang.String getLabel()
getLabel in interface MenuItemNodeInterfacepublic void setLabel(java.lang.String label)
setLabel in interface MenuItemNodeInterfacelabel - the label on the menu itempublic java.lang.String getImage()
getImage in interface MenuItemNodeInterfacepublic void setImage(java.lang.String image)
setImage in interface MenuItemNodeInterfaceimage - image displayed in the menu itempublic java.lang.String getDisabledImage()
getDisabledImage in interface MenuItemNodeInterfacepublic void setDisabledImage(java.lang.String image)
setDisabledImage in interface MenuItemNodeInterfaceimage - image displayed when the menu item is disabledpublic java.lang.String getTarget()
getTarget in interface MenuItemNodeInterfacepublic void setTarget(java.lang.String value)
setTarget in interface MenuItemNodeInterfacevalue - The value of the TARGET= argument on the anchor tagpublic java.lang.String getURL()
getURL in interface MenuItemNodeInterfacepublic void setURL(java.lang.String url)
setURL in interface MenuItemNodeInterfaceurl - the url associated with the menu itempublic void setStyleClassPrefix(java.lang.String styleClassPrefix)
setStyleClassPrefix in interface MenuItemNodeInterfacestyleClassPrefix - the prefix to use on the classpublic java.lang.String getStyleClassPrefix()
getStyleClassPrefix in interface MenuItemNodeInterfacestyleClassPrefix - the prefix used on the classpublic boolean getEnabled()
getEnabled in interface MenuItemNodeInterfacepublic void setEnabled(boolean enabled)
setEnabled in interface MenuItemNodeInterfaceenabled - state of the current menu itempublic java.lang.String getCustomAction()
getCustomAction in interface MenuItemNodeInterfacepublic void setCustomAction(java.lang.String action)
setCustomAction in interface MenuItemNodeInterfacecustom - action on the menupublic boolean getWrap()
public void setWrap(boolean wrap)
wrap - true if label is wrapped; false otherwisepublic void setTabIndex(java.lang.String value)
tabindex - The FormElement tabindexpublic java.lang.String getTabIndex()
public void setAccessKey(java.lang.String value)
accesskey - The accesskeypublic java.lang.String getAccessKey()
public void setTitle(java.lang.String value)
value - The title of the hrefpublic java.lang.String getTitle()
public void setAlternateText(java.lang.String value)
value - The alternate textpublic java.lang.String getAlternateText()
public void addNodeChild(SimpleNodeInterface node,
int index)
addNodeChild in interface MutableSimpleNodeInterfaceaddNodeChild in class Nodenode - the child to addindex - the position at which to add the childMutableSimpleNodeInterface
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||