javax.faces.tree
Class TreeFactory

java.lang.Object
  extended byjavax.faces.tree.TreeFactory

public abstract class TreeFactory
extends java.lang.Object

TreeFactory is a factory object that creates and returns new Tree instances.

There must be one TreeFactory instance per web application that is utilizing JavaServer Faces. This instance can be acquired, in a portable manner, by calling:

   TreeFactory factory = (TreeFactory)
    FactoryFinder.getFactory(FactoryFinder.TREE_FACTORY);
 


Constructor Summary
TreeFactory()
           
 
Method Summary
abstract  Tree getTree(FacesContext context, java.lang.String treeId)
          Create (if needed) and return a Tree that is initialized with a root node, and whose renderKitId property is initialized to the identifier of the default RenderKit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeFactory

public TreeFactory()
Method Detail

getTree

public abstract Tree getTree(FacesContext context,
                             java.lang.String treeId)
                      throws FacesException

Create (if needed) and return a Tree that is initialized with a root node, and whose renderKitId property is initialized to the identifier of the default RenderKit.

Parameters:
context - FacesContext for the current request
treeId - Tree identifier of the tree to be constructed and returned
Throws:
FacesException - if a Tree cannot be constructed for the specified parameters
java.lang.NullPointerException - if context or treeId is null