Public Member Functions | |
TreeControl () | |
TreeControl (TreeControlNode root) | |
int | getWidth () |
TreeControlNode | findNode (String name) |
void | selectNode (String name) |
TreeControlNode | getSelected () |
void | expandSelectedParents () |
void | disableAutoRefresh () |
void | enableAutoRefresh () |
Protected Member Functions | |
void | autoRefresh (TreeControlNode p_AddedNode) |
Protected Attributes | |
HashMap | registry = new HashMap() |
TreeControlNode | selected = null |
TreeControlNode | root = null |
Package Functions | |
void | addNode (TreeControlNode node) throws IllegalArgumentException |
int | getWidth (TreeControlNode node) |
void | removeNode (TreeControlNode node) |
void | addRemovedList (TreeControlNode p_RemovedNode) |
TreeControlTag
custom tag. Each node of the tree is represented by an instance of TreeControlNode
.
Craig R. McClanahan
Definition at line 78 of file TreeControl.java.
|
Construct a new instance with no predefined root node. Definition at line 86 of file TreeControl.java. |
|
Construct a new instance with the specified root node.
Definition at line 96 of file TreeControl.java. |
|
Register the specified node in our registry of the complete tree.
Definition at line 222 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControl.autoRefresh(), org.objectweb.jonas.webapp.taglib.TreeControlNode.getName(), org.objectweb.jonas.webapp.taglib.TreeControl.registry, and org.objectweb.jonas.webapp.taglib.TreeControlNode.setTree(). Referenced by org.objectweb.jonas.webapp.taglib.TreeControlNode.addChild(). |
Here is the call graph for this function:
|
Add the removed node in the removed list.
Definition at line 318 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControlNode.getName(). Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.removeNode(). |
Here is the call graph for this function:
|
Search the added node in the removed list and if it's found, copy the expanded info.
Definition at line 329 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControlNode.getName(), org.objectweb.jonas.webapp.taglib.TreeControlNode.isExpanded(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.setExpanded(). Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.addNode(). |
Here is the call graph for this function:
|
|
Enable auto-refresh mode. When a set of children are refreshed (removed then added), the expanded info is copied of the removed node to the added node. The name is used to retreive the good node. By default, the auto-refresh mode is disabled. Be careful, enabled this mode before the remove of all nodes and disabled it after the add. Definition at line 309 of file TreeControl.java. Referenced by org.objectweb.jonas.webapp.jonasadmin.catalina.CatalinaBaseAction.refreshConnectorsTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshJoramTree(), org.objectweb.jonas.webapp.jonasadmin.logging.BaseLoggerAction.refreshLoggersTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshMBeansTree(), org.objectweb.jonas.webapp.jonasadmin.security.BaseSecurityAction.refreshSecurityTree(), and org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree(). |
|
Expand a branch in the tree of the selected node. Definition at line 195 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControlNode.getParent(), org.objectweb.jonas.webapp.taglib.TreeControl.getSelected(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.setExpanded(). Referenced by org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.selectNameNode(). |
Here is the call graph for this function:
|
Find and return the
Definition at line 159 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControl.registry. Referenced by org.objectweb.jonas.webapp.jonasadmin.TreeAction.execute(), org.objectweb.jonas.webapp.jonasadmin.catalina.CatalinaBaseAction.refreshConnectorsTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshJoramTree(), org.objectweb.jonas.webapp.jonasadmin.logging.BaseLoggerAction.refreshLoggersTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshMBeansTree(), org.objectweb.jonas.webapp.jonasadmin.security.BaseSecurityAction.refreshSecurityTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree(), and org.objectweb.jonas.webapp.taglib.TreeControl.selectNode(). |
|
Get the last node selected.
Definition at line 188 of file TreeControl.java. Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.expandSelectedParents(), org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getSelectedNameNode(), org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getSelectedTreeControlNode(), and org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.getUrlToRefreshSelectedNode(). |
|
Calculate the width of the subtree below the specified node.
Definition at line 241 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControlNode.findChildren(), org.objectweb.jonas.webapp.taglib.TreeControl.getWidth(), org.objectweb.jonas.webapp.taglib.TreeControlNode.getWidth(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.isExpanded(). |
Here is the call graph for this function:
|
The current displayable "width" of this tree (that is, the maximum depth of the visible part of the tree). Definition at line 142 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControl.root. Referenced by org.objectweb.jonas.webapp.taglib.TreeControlTag.doEndTag(), and org.objectweb.jonas.webapp.taglib.TreeControl.getWidth(). |
|
Deregister the specified node, as well as all child nodes of this node, from our registry of the complete tree. If this node is not present, no action is taken.
Definition at line 263 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControl.addRemovedList(), org.objectweb.jonas.webapp.taglib.TreeControlNode.findChildren(), org.objectweb.jonas.webapp.taglib.TreeControlNode.getName(), org.objectweb.jonas.webapp.taglib.TreeControlNode.getParent(), org.objectweb.jonas.webapp.taglib.TreeControl.registry, org.objectweb.jonas.webapp.taglib.TreeControlNode.remove(), org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild(), org.objectweb.jonas.webapp.taglib.TreeControlNode.setParent(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.setTree(). Referenced by org.objectweb.jonas.webapp.taglib.TreeControlNode.remove(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild(). |
Here is the call graph for this function:
|
Mark the specified node as the one-and-only currently selected one, deselecting any previous node that was so marked.
Definition at line 172 of file TreeControl.java. References org.objectweb.jonas.webapp.taglib.TreeControl.findNode(), org.objectweb.jonas.webapp.taglib.TreeControl.selected, and org.objectweb.jonas.webapp.taglib.TreeControlNode.setSelected(). Referenced by org.objectweb.jonas.webapp.jonasadmin.TreeAction.execute(), org.objectweb.jonas.webapp.jonasadmin.SetUpTreeAction.execute(), and org.objectweb.jonas.webapp.jonasadmin.WhereAreYou.selectNameNode(). |
Here is the call graph for this function:
|
The collection of nodes that represent this tree, keyed by name. Definition at line 106 of file TreeControl.java. Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.addNode(), org.objectweb.jonas.webapp.taglib.TreeControl.findNode(), and org.objectweb.jonas.webapp.taglib.TreeControl.removeNode(). |
|
The root node of the entire tree. Definition at line 121 of file TreeControl.java. Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.getWidth(). |
|
The most recently selected node. Definition at line 111 of file TreeControl.java. Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.selectNode(). |