|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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()
GroupNode
getIdRef
in class GroupNode
public MenuNode getRefNode()
GroupNode
getRefNode
in class GroupNode
public final String getLabel()
MenuNode
getLabel
in class MenuNode
public final String getIcon()
MenuNode
getIcon
in class MenuNode
public final List<MenuNode> getChildren()
MenuNode
getChildren
in class MenuNode
public void setChildren(List<MenuNode> children)
MenuNode
setChildren
in class MenuNode
children
- - List of MenuNode children for this MenuNodepublic final String getFocusViewId()
MenuNode
getFocusViewId
in class MenuNode
public final boolean getRendered()
MenuNode
getRendered
in class MenuNode
public final boolean getDisabled()
MenuNode
getDisabled
in class MenuNode
public final boolean getVisible()
MenuNode
getVisible
in class MenuNode
public final boolean getReadOnly()
MenuNode
getReadOnly
in class MenuNode
protected final String getHandlerId()
MenuNode
getHandlerId
in class MenuNode
public final String getBundleKey()
public final String getBundleName()
public final char getAccessKey()
MenuNode
getAccessKey
in class MenuNode
public final String getLabelAndAccessKey()
MenuNode
getLabelAndAccessKey
in class MenuNode
public final String getId()
MenuNode
getId
in class MenuNode
public final String getModelId()
MenuNode
getModelId
in class MenuNode
public final String getUniqueId()
MenuNode
getUniqueId
in class MenuNode
public final boolean getDefaultFocusPath()
MenuNode
getDefaultFocusPath
in class MenuNode
public final String getRootModelKey()
MenuNode
getRootModelKey
in class MenuNode
public final int getRootId()
getRootId
in class MenuNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |