|
||||||||||
| 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.ItemNode
org.apache.myfaces.trinidad.menu.ImmutableItemNode
public class ImmutableItemNode
This class is a thread safe version of ItemNode class. It replicates most of the code in ItemNode 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 | |
|---|---|
ImmutableItemNode(ItemNode node) |
|
| Method Summary | |
|---|---|
void |
actionListener(javax.faces.event.ActionEvent event) |
String |
doAction()Gets the value of the node's action property. |
char |
getAccessKey()getAccessKey - get the label's accessKey as a char. |
String |
getActionListener()getActionListener - gets the value of the Menu Node's actionListener attribute. |
String |
getBundleKey() |
String |
getBundleName() |
List<MenuNode> |
getChildren()Get the List of menu item's children. |
Map<String,String> |
getCustomPropList()Get the Attributes containing the custom attributes on this node. |
boolean |
getDefaultFocusPath()Gets the defaultFocusPath attribute of the menu item. |
String |
getDestination()Gets the value of the node's destination property. |
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. |
boolean |
getImmediate()Gets the immediate attribute of the menu item. |
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 |
getLaunchListener()getLaunchListener - gets the value of the Menu Node's launchListener attribute. |
String |
getModelId()Gets the local (shared node's) menu Model's Request map key. |
boolean |
getReadOnly()Gets the readOnly state of the node. |
boolean |
getRendered()Gets the rendered attribute of the menu item. |
String |
getReturnListener()getReturnListener - gets the value of the Menu Node's returnListener attribute. |
int |
getRootId() |
String |
getRootModelKey()Get the top-level, root menu model Request Map Key. |
String |
getTargetFrame()getTargetFrame - gets the value of the Destination Node's targetFrame attribute |
String |
getUniqueId()getUniqueId - gets the unique id of the node. |
boolean |
getUseWindow()Gets the useWindow attribute of the menu item. |
boolean |
getVisible()Gets the visible attribute of the menu item. |
int |
getWindowHeight()Gets the windowHeight attribute of the menu item. |
int |
getWindowWidth()Gets the windowWidth attribute of the menu item. |
void |
setChildren(List<MenuNode> children)Set the List of menu item's children. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableItemNode(ItemNode node)
| Method Detail |
|---|
public final Map<String,String> getCustomPropList()
ItemNodegetCustomPropList in class ItemNodepublic final String getDestination()
ItemNodegetDestination in class ItemNodepublic final String getTargetFrame()
ItemNodegetTargetFrame in class ItemNodepublic final String getActionListener()
ItemNodegetActionListener in class ItemNodepublic final String getLaunchListener()
ItemNodegetLaunchListener in class ItemNodepublic final String getReturnListener()
ItemNodegetReturnListener in class ItemNodepublic final boolean getImmediate()
ItemNodegetImmediate in class ItemNodepublic final boolean getUseWindow()
ItemNodegetUseWindow in class ItemNodepublic final int getWindowHeight()
ItemNodegetWindowHeight in class ItemNodepublic final int getWindowWidth()
ItemNodegetWindowWidth in class ItemNodepublic 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 void actionListener(javax.faces.event.ActionEvent event)
actionListener in class ItemNodepublic String doAction()
ItemNodedoAction in class ItemNodepublic final char getAccessKey()
MenuNodegetAccessKey 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 String getLabelAndAccessKey()
MenuNodegetLabelAndAccessKey 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.