org.objectweb.jonas.webapp.taglib.TreeControlNode Class Reference

Collaboration diagram for org.objectweb.jonas.webapp.taglib.TreeControlNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TreeControlNode (String name, String icon, String label, String action, String target, boolean expanded)
boolean isLeaf ()
void addChild (TreeControlNode child) throws IllegalArgumentException
void addChild (int offset, TreeControlNode child) throws IllegalArgumentException
TreeControlNode[] findChildren ()
void remove ()
void removeChild (int offset)

Protected Attributes

ArrayList children = new ArrayList()
String action = null
boolean expanded = false
String icon = null
String label = null
boolean last = false
String name = null
TreeControlNode parent = null
boolean selected = false
String target = null
TreeControl tree = null
int width = 0

Package Functions

void removeChild (TreeControlNode child)

Detailed Description

An individual node of a tree control represented by an instance of TreeControl, and rendered by an instance of TreeControlTag.

Author:
Jazmin Jonson

Craig R. McClanahan

Version:
Revision
1.1

Definition at line 78 of file TreeControlNode.java.


Constructor & Destructor Documentation

org.objectweb.jonas.webapp.taglib.TreeControlNode.TreeControlNode String  name,
String  icon,
String  label,
String  action,
String  target,
boolean  expanded
 

Construct a new TreeControlNode with the specified parameters.

Parameters:
name Internal name of this node (must be unique within the entire tree)
icon Pathname of the image file for the icon to be displayed when this node is visible, relative to the image directory for our images
label The label that will be displayed to the user if this node is visible
action The hyperlink to be selected if the user selects this node, or null if this node's label should not be a hyperlink
target The window target in which the action hyperlink's results will be displayed, or null for the current window
expanded Should this node be expanded?

Definition at line 100 of file TreeControlNode.java.


Member Function Documentation

void org.objectweb.jonas.webapp.taglib.TreeControlNode.addChild int  offset,
TreeControlNode  child
throws IllegalArgumentException
 

Add a new child node at the specified position in the child list.

Parameters:
offset Zero-relative offset at which the new node should be inserted
child The new child node
Exceptions:
IllegalArgumentException if the name of the new child node is not unique

Definition at line 312 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControl.addNode(), org.objectweb.jonas.webapp.taglib.TreeControlNode.children, and org.objectweb.jonas.webapp.taglib.TreeControlNode.tree.

Here is the call graph for this function:

void org.objectweb.jonas.webapp.taglib.TreeControlNode.addChild TreeControlNode  child  )  throws IllegalArgumentException
 

Add a new child node to the end of the list.

Parameters:
child The new child node
Exceptions:
IllegalArgumentException if the name of the new child node is not unique

Definition at line 285 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControl.addNode(), org.objectweb.jonas.webapp.taglib.TreeControlNode.children, org.objectweb.jonas.webapp.taglib.TreeControlNode.setLast(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.tree.

Referenced by org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getCatalinaConnector(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getCatalinaDetailConnectors(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getCatalinaProtocols(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDatasources(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDeploymentEar(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDeploymentEjb(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDeploymentEjbFiles(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDeploymentRar(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDeployments(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getDeploymentWebAppli(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getEjbs(), org.objectweb.jonas.webapp.jonasadmin.MBeanTreeBuilder.getJ2eeMBeans(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getJmsConnectionFactories(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getJmsQueues(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getJmsResource(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getJmsResources(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getJmsTopics(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getJoramPlatform(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getMailResource(), org.objectweb.jonas.webapp.jonasadmin.MBeanTreeBuilder.getMBeanInfo(), org.objectweb.jonas.webapp.jonasadmin.MBeanTreeBuilder.getMBeans(), org.objectweb.jonas.webapp.jonasadmin.MBeanTreeBuilder.getOwnerMBeans(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getResourceDatabase(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getResources(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getResourcesAdapters(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getSecurity(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getSecurityCatalinaRealm(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getSecurityFactories(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getSecurityMemoryFactory(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServiceDatabase(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServiceMail(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServiceResourceAdapter(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServiceSecurity(), org.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder.getServiceWeb(), and org.objectweb.jonas.webapp.jonasadmin.MBeanTreeBuilder.getUnknownMBeans().

Here is the call graph for this function:

TreeControlNode [] org.objectweb.jonas.webapp.taglib.TreeControlNode.findChildren  ) 
 

Return the set of child nodes for this node.

Definition at line 326 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControlNode.children.

Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.getWidth(), org.objectweb.jonas.webapp.jonasadmin.catalina.CatalinaBaseAction.refreshConnectorsTree(), org.objectweb.jonas.webapp.jonasadmin.logging.BaseLoggerAction.refreshLoggersTree(), org.objectweb.jonas.webapp.jonasadmin.security.BaseSecurityAction.refreshSecurityTree(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree(), org.objectweb.jonas.webapp.taglib.TreeControl.removeNode(), and org.objectweb.jonas.webapp.taglib.TreeControlTag.render().

boolean org.objectweb.jonas.webapp.taglib.TreeControlNode.isLeaf  ) 
 

Is this a "leaf" node (i.e. one with no children)?

Definition at line 191 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControlNode.children.

void org.objectweb.jonas.webapp.taglib.TreeControlNode.remove  ) 
 

Remove this node from the tree.

Definition at line 338 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControl.removeNode(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.tree.

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(), org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction.refreshServiceTree(), org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild(), and org.objectweb.jonas.webapp.taglib.TreeControl.removeNode().

Here is the call graph for this function:

void org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild TreeControlNode  child  )  [package]
 

Remove the specified child node. It is assumed that all of the children of this child node have already been removed.

Parameters:
child Child node to be removed

Definition at line 382 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControlNode.children, and org.objectweb.jonas.webapp.taglib.TreeControlNode.remove().

Here is the call graph for this function:

void org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild int  offset  ) 
 

Remove the child node (and all children of that child) at the specified position in the child list.

Parameters:
offset Zero-relative offset at which the existing node should be removed

Definition at line 353 of file TreeControlNode.java.

References org.objectweb.jonas.webapp.taglib.TreeControlNode.children, org.objectweb.jonas.webapp.taglib.TreeControlNode.remove(), org.objectweb.jonas.webapp.taglib.TreeControl.removeNode(), org.objectweb.jonas.webapp.taglib.TreeControlNode.setParent(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.tree.

Referenced by org.objectweb.jonas.webapp.taglib.TreeControl.removeNode().

Here is the call graph for this function:


Member Data Documentation

String org.objectweb.jonas.webapp.taglib.TreeControlNode.action = null [protected]
 

The hyperlink to which control will be directed if this node is selected by the user.

Definition at line 137 of file TreeControlNode.java.

Referenced by org.objectweb.jonas.webapp.taglib.TreeControlTag.release().

ArrayList org.objectweb.jonas.webapp.taglib.TreeControlNode.children = new ArrayList() [protected]
 

The set of child TreeControlNodes for this node, in the order that they should be displayed.

Definition at line 129 of file TreeControlNode.java.

Referenced by org.objectweb.jonas.webapp.taglib.TreeControlNode.addChild(), org.objectweb.jonas.webapp.taglib.TreeControlNode.findChildren(), org.objectweb.jonas.webapp.taglib.TreeControlNode.isLeaf(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild().

boolean org.objectweb.jonas.webapp.taglib.TreeControlNode.expanded = false [protected]
 

Is this node currently expanded?

Definition at line 146 of file TreeControlNode.java.

String org.objectweb.jonas.webapp.taglib.TreeControlNode.icon = null [protected]
 

The pathname to the icon file displayed when this node is visible, relative to the image directory for our images.

Definition at line 160 of file TreeControlNode.java.

String org.objectweb.jonas.webapp.taglib.TreeControlNode.label = null [protected]
 

The label that will be displayed when this node is visible.

Definition at line 169 of file TreeControlNode.java.

boolean org.objectweb.jonas.webapp.taglib.TreeControlNode.last = false [protected]
 

Is this the last node in the set of children for our parent node?

Definition at line 178 of file TreeControlNode.java.

String org.objectweb.jonas.webapp.taglib.TreeControlNode.name = null [protected]
 

The unique (within the entire tree) name of this node.

Definition at line 200 of file TreeControlNode.java.

TreeControlNode org.objectweb.jonas.webapp.taglib.TreeControlNode.parent = null [protected]
 

The parent node of this node, or null if this is the root node.

Definition at line 210 of file TreeControlNode.java.

boolean org.objectweb.jonas.webapp.taglib.TreeControlNode.selected = false [protected]
 

Is this node currently selected?

Definition at line 229 of file TreeControlNode.java.

String org.objectweb.jonas.webapp.taglib.TreeControlNode.target = null [protected]
 

The window target for the hyperlink identified by the action property, if this node is selected by the user.

Definition at line 244 of file TreeControlNode.java.

TreeControl org.objectweb.jonas.webapp.taglib.TreeControlNode.tree = null [protected]
 

The TreeControl instance representing the entire tree.

Definition at line 254 of file TreeControlNode.java.

Referenced by org.objectweb.jonas.webapp.taglib.TreeControlNode.addChild(), org.objectweb.jonas.webapp.taglib.TreeControlTag.release(), org.objectweb.jonas.webapp.taglib.TreeControlNode.remove(), and org.objectweb.jonas.webapp.taglib.TreeControlNode.removeChild().

int org.objectweb.jonas.webapp.taglib.TreeControlNode.width = 0 [protected]
 

The display width necessary to display this item (if it is visible). If this item is not visible, the calculated width will be that of our most immediately visible parent.

Definition at line 269 of file TreeControlNode.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:09:48 2005 for JOnAS by  doxygen 1.3.9.1