org.apache.beehive.netui.tags.tree
Class TreeHelpers

Object
  extended by TreeHelpers

public class TreeHelpers
extends Object

This class provides a set of static helper methods that deal with a tree.


Constructor Summary
TreeHelpers()
           
 
Method Summary
static void processTreeRequest(String treeId, TreeElement treeRoot, HttpServletRequest request)
          If this tree was selected or expanded this will handle that processing.
protected static void setSelected(TreeElement node, String selected)
          Recursive routine to set the selected node.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeHelpers

public TreeHelpers()
Method Detail

processTreeRequest

public static void processTreeRequest(String treeId,
                                      TreeElement treeRoot,
                                      HttpServletRequest request)
If this tree was selected or expanded this will handle that processing.

Parameters:
treeId -
treeRoot -
request -

setSelected

protected static void setSelected(TreeElement node,
                                  String selected)
Recursive routine to set the selected node. This will set the selected node and clear the selection on all other nodes. It will walk the full tree.

Parameters:
node -
selected -