|
||||||||||
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 ItemNode
public final String getDestination()
ItemNode
getDestination
in class ItemNode
public final String getTargetFrame()
ItemNode
getTargetFrame
in class ItemNode
public final String getActionListener()
ItemNode
getActionListener
in class ItemNode
public final String getLaunchListener()
ItemNode
getLaunchListener
in class ItemNode
public final String getReturnListener()
ItemNode
getReturnListener
in class ItemNode
public final boolean getImmediate()
ItemNode
getImmediate
in class ItemNode
public final boolean getUseWindow()
ItemNode
getUseWindow
in class ItemNode
public final int getWindowHeight()
ItemNode
getWindowHeight
in class ItemNode
public final int getWindowWidth()
ItemNode
getWindowWidth
in class ItemNode
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 void actionListener(javax.faces.event.ActionEvent event)
actionListener
in class ItemNode
public String doAction()
ItemNode
doAction
in class ItemNode
public final char getAccessKey()
MenuNode
getAccessKey
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 String getLabelAndAccessKey()
MenuNode
getLabelAndAccessKey
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 |