|
||||||||||
| 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.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()
ItemNode
getCustomPropList in class ItemNodepublic final String getDestination()
ItemNode
getDestination in class ItemNodepublic final String getTargetFrame()
ItemNode
getTargetFrame in class ItemNodepublic final String getActionListener()
ItemNode
getActionListener in class ItemNodepublic final String getLaunchListener()
ItemNode
getLaunchListener in class ItemNodepublic final String getReturnListener()
ItemNode
getReturnListener in class ItemNodepublic final boolean getImmediate()
ItemNode
getImmediate in class ItemNodepublic final boolean getUseWindow()
ItemNode
getUseWindow in class ItemNodepublic final int getWindowHeight()
ItemNode
getWindowHeight in class ItemNodepublic final int getWindowWidth()
ItemNode
getWindowWidth in class ItemNodepublic final String getLabel()
MenuNode
getLabel in class MenuNodepublic final String getIcon()
MenuNode
getIcon in class MenuNodepublic final List<MenuNode> getChildren()
MenuNode
getChildren in class MenuNodepublic void setChildren(List<MenuNode> children)
MenuNode
setChildren in class MenuNodechildren - - List of MenuNode children for this MenuNodepublic final String getFocusViewId()
MenuNode
getFocusViewId in class MenuNodepublic final boolean getRendered()
MenuNode
getRendered in class MenuNodepublic final boolean getDisabled()
MenuNode
getDisabled in class MenuNodepublic final boolean getVisible()
MenuNode
getVisible in class MenuNodepublic final boolean getReadOnly()
MenuNode
getReadOnly in class MenuNodeprotected final String getHandlerId()
MenuNode
getHandlerId in class MenuNodepublic final String getBundleKey()
public final String getBundleName()
public void actionListener(javax.faces.event.ActionEvent event)
actionListener in class ItemNodepublic String doAction()
ItemNode
doAction in class ItemNodepublic final char getAccessKey()
MenuNode
getAccessKey in class MenuNodepublic final String getId()
MenuNode
getId in class MenuNodepublic final String getModelId()
MenuNode
getModelId in class MenuNodepublic final String getUniqueId()
MenuNode
getUniqueId in class MenuNodepublic final String getLabelAndAccessKey()
MenuNode
getLabelAndAccessKey in class MenuNodepublic final boolean getDefaultFocusPath()
MenuNode
getDefaultFocusPath in class MenuNodepublic final String getRootModelKey()
MenuNode
getRootModelKey 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 | |||||||||