|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.MenuNode
public class MenuNode
MenuNode extends Node and provides an implementation of MenuNodeInterface
| Field Summary | |
|---|---|
static int |
LEFT
|
static java.lang.String |
RB_KEY
|
static int |
RIGHT
|
| Fields inherited from class com.sas.models.Node |
|---|
children, defaultNodeStyle, expandedNodeText, externalUpdateSupported, hasChildren, nodeStyle, nodeText, nodeType, objectData |
| Constructor Summary | |
|---|---|
MenuNode()
Constructor of MenuNode. |
|
MenuNode(java.lang.String label)
Constructor of MenuNode |
|
MenuNode(java.lang.String label,
java.lang.String image)
Constructor of MenuNode |
|
MenuNode(java.lang.String label,
java.lang.String image,
java.lang.String URL)
Constructor of MenuNode |
|
| Method Summary | |
|---|---|
void |
addNodeChild(SimpleNodeInterface node,
int index)
Adds a child at index. |
java.lang.String |
getAccessKey()
Gets the accesskey. |
java.lang.String |
getAlternateText()
Returns the ALT attribute on the HTML output tag that provides tooltip text when hovering over the image. |
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 |
int |
getImagePosition()
Returns the position of the menu image. |
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 ALT attribute on the HTML output tag that provides tooltip text when hovering over the image. |
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 |
setImagePosition(int position)
Sets the image position "Right" - If both image and text is specified for the menu, the image will be placed on the right hand side of the menu. |
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
public static final int RIGHT
public static final int LEFT
| Constructor Detail |
|---|
public MenuNode()
public MenuNode(java.lang.String label,
java.lang.String image,
java.lang.String URL)
label - text label on the MenuNodeimage - image to display on MenuNodeURL - URL to associate with MenuNode
public MenuNode(java.lang.String label,
java.lang.String image)
label - text label on the MenuNodeimage - image to display on the MenuNodepublic MenuNode(java.lang.String label)
label - text label on the MenuNode| 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 int getImagePosition()
getImagePosition in interface MenuNodeInterfacepublic void setImagePosition(int position)
setImagePosition in interface MenuNodeInterfaceposition - of the imagepublic java.lang.String getAlternateText()
getAlternateText in interface MenuNodeInterfacepublic void setAlternateText(java.lang.String value)
setAlternateText in interface MenuNodeInterfacevalue - The text that provides tooltip when hovering over the image.public 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 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 | |||||||||||||