|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
org.apache.myfaces.trinidad.menu.MenuNode
org.apache.myfaces.trinidad.menu.GroupNode
org.apache.myfaces.trinidad.menu.ImmutableGroupNode
public class ImmutableGroupNode
This class is a thread safe version of GroupNode class. It replicates most of the code in GroupNode but makes sure it does not modify state of the object. Therefore multiple request threads can access the properties of the objects of this class,in a thread safe manner. Please note that setters should not be called on objects of this class.Objects of this class are fully initialized on construction.
| Constructor Summary | |
|---|---|
ImmutableGroupNode(GroupNode node) |
|
| Method Summary | |
|---|---|
char |
getAccessKey()getAccessKey - get the label's accessKey as a char. |
String |
getBundleKey() |
String |
getBundleName() |
List<MenuNode> |
getChildren()Get the List of menu item's children. |
boolean |
getDefaultFocusPath()Gets the defaultFocusPath attribute of the menu item. |
boolean |
getDisabled()Gets the disabled attribute of the menu item. |
String |
getFocusViewId()Gets the value of the node's focusViewId property. |
protected String |
getHandlerId()Set the MenuContentHandlerImpl's id. |
String |
getIcon()Get the icon used by the menu item This could either be a string value set directly in the metadata or an EL expression string. |
String |
getId()getId - gets the metadata id of the node. |
String |
getIdRef()Get the id of the node referred to by the idref attribute of this node. |
String |
getLabel()Get the menu item's label This could either be a string value set directly in the metadata or an EL expression string. |
String |
getLabelAndAccessKey()getLabelAndAccessKey - get the label and accessKey together in a single string. |
String |
getModelId()Gets the local (shared node's) menu Model's Request map key. |
boolean |
getReadOnly()Gets the readOnly state of the node. |
MenuNode |
getRefNode()Get the node whose id matches this node's idref attribute value. |
boolean |
getRendered()Gets the rendered attribute of the menu item. |
int |
getRootId() |
String |
getRootModelKey()Get the top-level, root menu model Request Map Key. |
String |
getUniqueId()getUniqueId - gets the unique id of the node. |
boolean |
getVisible()Gets the visible attribute of the menu item. |
void |
setChildren(List<MenuNode> children)Set the List of menu item's children. |
| Methods inherited from class org.apache.myfaces.trinidad.menu.GroupNode |
|---|
doAction, getDestination, getIdRefListProperty, getThreadSafeCopy, setIdRef |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableGroupNode(GroupNode node)
| Method Detail |
|---|
public String getIdRef()
GroupNodegetIdRef in class GroupNodepublic MenuNode getRefNode()
GroupNodegetRefNode in class GroupNodepublic final String getLabel()
MenuNodegetLabel in class MenuNodepublic final String getIcon()
MenuNodegetIcon in class MenuNodepublic final List<MenuNode> getChildren()
MenuNodegetChildren in class MenuNodepublic void setChildren(List<MenuNode> children)
MenuNodesetChildren in class MenuNodechildren - - List of MenuNode children for this MenuNodepublic final String getFocusViewId()
MenuNodegetFocusViewId in class MenuNodepublic final boolean getRendered()
MenuNodegetRendered in class MenuNodepublic final boolean getDisabled()
MenuNodegetDisabled in class MenuNodepublic final boolean getVisible()
MenuNodegetVisible in class MenuNodepublic final boolean getReadOnly()
MenuNodegetReadOnly in class MenuNodeprotected final String getHandlerId()
MenuNodegetHandlerId in class MenuNodepublic final String getBundleKey()
public final String getBundleName()
public final char getAccessKey()
MenuNodegetAccessKey in class MenuNodepublic final String getLabelAndAccessKey()
MenuNodegetLabelAndAccessKey in class MenuNodepublic final String getId()
MenuNodegetId in class MenuNodepublic final String getModelId()
MenuNodegetModelId in class MenuNodepublic final String getUniqueId()
MenuNodegetUniqueId in class MenuNodepublic final boolean getDefaultFocusPath()
MenuNodegetDefaultFocusPath in class MenuNodepublic final String getRootModelKey()
MenuNodegetRootModelKey in class MenuNodepublic final int getRootId()
getRootId in class MenuNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.