org.apache.myfaces.trinidadinternal.menu
Class GroupNode

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.menu.MenuNode
      extended by org.apache.myfaces.trinidadinternal.menu.GroupNode

public class GroupNode
extends MenuNode

Code specific to a Menu Model's GroupNode.

Author:
Gary Kind

Constructor Summary
GroupNode()
          Constructs a GroupNode
 
Method Summary
 java.lang.String doAction()
          Called by the Default ActionListener when a menu node is clicked/selected.
 java.lang.String getDestination()
          Get the Destination URL of a page for a GET.
 java.lang.String getIdRef()
          Get the id of the node referred to by the idref attribute of this node.
 MenuNode getRefNode()
          Get the node whose id matches this node's idref attribute value.
 void setIdRef(java.lang.String idref)
          Sets the idref of the node.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.menu.MenuNode
getAccessKey, getChildren, getDefaultFocusPath, getDisabled, getFocusViewId, getHandlerId, getIcon, getId, getLabel, getLabelAndAccessKey, getNodeSysId, getReadOnly, getRendered, getRootModel, getRootModelKey, getUniqueId, getVisible, postSelectedNode, setAccessKey, setAccessKey, setChildren, setDefaultFocusPath, setDefaultFocusPath, setDisabled, setDisabled, setFocusViewId, setHandlerId, setIcon, setId, setLabel, setLabelAndAccessKey, setReadOnly, setReadOnly, setRendered, setRendered, setResBundleKey, setResBundleName, setRootModelKey, setVisible, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupNode

public GroupNode()
Constructs a GroupNode

Method Detail

doAction

public java.lang.String doAction()
Called by the Default ActionListener when a menu node is clicked/selected.

Overrides:
doAction in class MenuNode
Returns:
String outcome or viewId used during a POST for navigation.

getDestination

public java.lang.String getDestination()
Get the Destination URL of a page for a GET.

Overrides:
getDestination in class MenuNode
Returns:
String URL of a page.

setIdRef

public void setIdRef(java.lang.String idref)
Sets the idref of the node. The value of this attribute is an "id" of another node This tells the pointing node where to obtain its viewId and takes precedence (and will replace) the pointing nodes viewId, if one exists. This should point to a node of the same style, e.g. actionNode points to actionNode.

Parameters:
idref - - String name pointing to the "id" of another node

getRefNode

public MenuNode getRefNode()
Get the node whose id matches this node's idref attribute value.

Overrides:
getRefNode in class MenuNode
Returns:
the MenuNode whose id matches this node's idref attribute value.

getIdRef

public java.lang.String getIdRef()
Get the id of the node referred to by the idref attribute of this node.

Returns:
String id of the node referred to by the idref attribure of this node.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.