org.apache.myfaces.examples.tree
Class TreeBacker

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

public class TreeBacker
extends java.lang.Object
implements java.io.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, java.lang.Object value)
           
 java.lang.String expandAll()
           
 void expandPath(javax.faces.event.ActionEvent event)
           
 org.apache.myfaces.custom.tree2.TreeModel getExpandedTreeData()
          NOTE: This is just to show an alternative way of supplying tree data.
 java.lang.String getNodePath()
           
 org.apache.myfaces.custom.tree2.HtmlTree getTree()
           
 org.apache.myfaces.custom.tree2.TreeNode getTreeData()
           
 void setNodePath(java.lang.String nodePath)
           
 void setTree(org.apache.myfaces.custom.tree2.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 org.apache.myfaces.custom.tree2.TreeNode getTreeData()

getExpandedTreeData

public org.apache.myfaces.custom.tree2.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(org.apache.myfaces.custom.tree2.HtmlTree tree)

getTree

public org.apache.myfaces.custom.tree2.HtmlTree getTree()

expandAll

public java.lang.String expandAll()

setNodePath

public void setNodePath(java.lang.String nodePath)

getNodePath

public java.lang.String getNodePath()

checkPath

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

expandPath

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


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