|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTreeHelpers
public class TreeHelpers
This class provides a set of static helper methods that deal with a trees.
Constructor Summary | |
---|---|
TreeHelpers()
|
Method Summary | |
---|---|
static TreeElement |
changeSelected(TreeElement root,
TreeElement selectedNode,
String selectNode,
ServletRequest request)
This is a helper method that will change the selected node. |
static TreeElement |
findSelected(TreeElement root)
This will return the currently selected node from a tree. |
static void |
processTreeRequest(String treeId,
TreeElement treeRoot,
HttpServletRequest request,
HttpServletResponse response)
If this tree was selected or expanded this will handle that processing. |
protected static void |
setSelected(TreeElement node,
String selected,
ServletRequest request)
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 |
---|
public TreeHelpers()
Method Detail |
---|
public static void processTreeRequest(String treeId, TreeElement treeRoot, HttpServletRequest request, HttpServletResponse response)
treeId
- treeRoot
- request
- protected static void setSelected(TreeElement node, String selected, ServletRequest request)
node
- selected
- public static TreeElement findSelected(TreeElement root)
Implementation Note: The method that changes the selected node based on the request,
processTreeRequest(String, TreeElement, HttpServletRequest, HttpServletResponse)
,
gets called during the processing of the Tree
tag within a JSP. If the
findSelected
method is called from an Action in a Page Flow Controller,
the value of the selected node will have not yet been updated.
root
- the root element of the tree.
public static TreeElement changeSelected(TreeElement root, TreeElement selectedNode, String selectNode, ServletRequest request)
changeSelected
method there to do the work of changing the selected node.
root
- The root of the treeselectedNode
- The node that is currently selected, it may be nullselectNode
- The String name of the node that will be selectedrequest
- The ServletRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |