org.apache.myfaces.examples.tree
Class TreeBacker

java.lang.Object
  extended by org.apache.myfaces.examples.tree.TreeBacker
All Implemented Interfaces:
Serializable

public class TreeBacker
extends Object
implements Serializable

Backer bean for use in example. Basically makes a TreeNode available.

Version:
$Revision: 472610 $ $Date: 2006-11-08 14:46:34 -0500 (Wed, 08 Nov 2006) $
Author:
Sean Schofield
See Also:
Serialized Form

Constructor Summary
TreeBacker()
           
 
Method Summary
 void checkPath(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
           
 String expandAll()
           
 void expandPath(javax.faces.event.ActionEvent event)
           
 TreeModel getExpandedTreeData()
          NOTE: This is just to show an alternative way of supplying tree data.
 String getNodePath()
           
 HtmlTree getTree()
           
 TreeNode getTreeData()
           
 void setNodePath(String nodePath)
           
 void setTree(HtmlTree tree)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBacker

public TreeBacker()
Method Detail

getTreeData

public TreeNode getTreeData()

getExpandedTreeData

public TreeModel getExpandedTreeData()
NOTE: This is just to show an alternative way of supplying tree data. You can supply either a TreeModel or TreeNode.

Returns:
TreeModel

setTree

public void setTree(HtmlTree tree)

getTree

public HtmlTree getTree()

expandAll

public String expandAll()

setNodePath

public void setNodePath(String nodePath)

getNodePath

public String getNodePath()

checkPath

public void checkPath(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component,
                      Object value)

expandPath

public void expandPath(javax.faces.event.ActionEvent event)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.