org.apache.myfaces.custom.tree2
public class UITreeData extends UIComponentBase implements NamingContainer
var
property. javax.faces.render.Renderers of this
component should use the appropriate facet to assist in rendering.
Version: $Revision: 234267 $ $Date: 2005-08-21 18:55:19 +0200 (Sun, 21 Aug 2005) $
Field Summary | |
---|---|
static String | COMPONENT_FAMILY |
static String | COMPONENT_TYPE |
Constructor Summary | |
---|---|
UITreeData()
Constructor |
Method Summary | |
---|---|
void | broadcast(FacesEvent event) |
void | collapsePath(String[] nodePath)
Expands all of the nodes in the specfied path. |
void | encodeBegin(FacesContext context) |
void | expandAll()
Epands all nodes by default. |
void | expandPath(String[] nodePath)
Expands all of the nodes in the specfied path. |
String | getClientId(FacesContext context) |
TreeModel | getDataModel() |
String | getFamily() |
TreeNode | getNode() |
String | getNodeId() |
String[] | getPathInformation(String nodeId)
Gets an array of String containing the ID's of all of the TreeNodes in the path to
the specified node. |
Object | getValue()
Gets the value of the TreeData.
|
String | getVar()
Return the request-scope attribute under which the data object for the current node will be exposed
when iterating. |
boolean | isLastChild(String nodeId)
Indicates whether or not the specified TreeNode is the last child in the List
of children. |
boolean | isNodeExpanded()
Indicates whether or not the current TreeNode is expanded. |
protected void | processChildNodes(FacesContext context, TreeNode parentNode, int processAction)
Process the child nodes of the supplied parent TreeNode. |
void | processDecodes(FacesContext context) |
void | processUpdates(FacesContext context) |
void | processValidators(FacesContext context) |
void | queueEvent(FacesEvent event) |
void | restoreState(FacesContext context, Object state) |
Object | saveState(FacesContext context) |
void | setNodeId(String nodeId) |
void | setValue(Object value)
Sets the value of the TreeData.
|
void | setValueBinding(String name, ValueBinding binding) |
void | setVar(String var)
Set the request-scope attribute under which the data object for the current node wil be exposed
when iterating.
|
void | toggleExpanded()
Toggle the expanded state of the current node. |
Parameters: nodePath The path to expand.
Parameters: expandAll boolean
Parameters: nodePath The path to expand.
Returns: TreeModel
String
objects
representing node ID's. The array will starting with the ID of the root node and end with
the ID of the specified node.
Parameters: nodeId The id of the node for whom the path information is needed.
Returns: String[]
Returns: The value
Returns: The iterrator attribute
List
of children. If the node id provided corresponds to the root node, this returns true
.
Parameters: nodeId The ID of the node to check
Returns: boolean
Returns: boolean
Parameters: context FacesContext parentNode The parent node whose children are to be processed processAction An int
representing the type of action to process
Parameters: value The new value
Parameters: var The new request-scope attribute name