| java.lang.Object org.objectweb.jonas.webapp.taglib.TreeControlNode
TreeControlNode | public class TreeControlNode implements Serializable(Code) | | An individual node of a tree control represented by an instance of
TreeControl , and rendered by an instance of
TreeControlTag .
author: Jazmin Jonson author: Craig R. McClanahan version: $Revision: 3530 $ |
Field Summary | |
protected String | action The hyperlink to which control will be directed if this node
is selected by the user. | protected ArrayList | children The set of child TreeControlNodes for this node, in the
order that they should be displayed. | protected boolean | expanded | protected String | icon The pathname to the icon file displayed when this node is visible,
relative to the image directory for our images. | protected String | label The label that will be displayed when this node is visible. | protected boolean | last | protected String | name The unique (within the entire tree) name of this node. | protected TreeControlNode | parent The parent node of this node, or null if this
is the root node. | protected boolean | selected | protected String | target The window target for the hyperlink identified by the
action property, if this node is selected
by the user. | protected TreeControl | tree The TreeControl instance representing the
entire tree. | protected int | width The display width necessary to display this item (if it is visible). |
action | protected String action(Code) | | The hyperlink to which control will be directed if this node
is selected by the user.
|
children | protected ArrayList children(Code) | | The set of child TreeControlNodes for this node, in the
order that they should be displayed.
|
expanded | protected boolean expanded(Code) | | Is this node currently expanded?
|
icon | protected String icon(Code) | | The pathname to the icon file displayed when this node is visible,
relative to the image directory for our images.
|
label | protected String label(Code) | | The label that will be displayed when this node is visible.
|
last | protected boolean last(Code) | | Is this the last node in the set of children for our parent node?
|
name | protected String name(Code) | | The unique (within the entire tree) name of this node.
|
parent | protected TreeControlNode parent(Code) | | The parent node of this node, or null if this
is the root node.
|
selected | protected boolean selected(Code) | | Is this node currently selected?
|
target | protected String target(Code) | | The window target for the hyperlink identified by the
action property, if this node is selected
by the user.
|
tree | protected TreeControl tree(Code) | | The TreeControl instance representing the
entire tree.
|
width | protected int width(Code) | | 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.
|
TreeControlNode | public TreeControlNode(String name, String icon, String label, String action, String target, boolean expanded)(Code) | | Construct a new TreeControlNode with the specified parameters.
Parameters: name - Internal name of this node (must be unique withinthe entire tree) Parameters: icon - Pathname of the image file for the icon to be displayedwhen this node is visible, relative to the image directoryfor our images Parameters: label - The label that will be displayed to the user ifthis node is visible Parameters: action - The hyperlink to be selected if the userselects this node, or null if this node's label shouldnot be a hyperlink Parameters: target - The window target in which the action hyperlink's results will be displayed, or null forthe current window Parameters: expanded - Should this node be expanded? |
addChild | public void addChild(int offset, TreeControlNode child) throws IllegalArgumentException(Code) | | Add a new child node at the specified position in the child list.
Parameters: offset - Zero-relative offset at which the new nodeshould be inserted Parameters: child - The new child node exception: IllegalArgumentException - if the name of the new childnode is not unique |
getWidth | public int getWidth()(Code) | | |
isExpanded | public boolean isExpanded()(Code) | | |
isLast | public boolean isLast()(Code) | | |
isLeaf | public boolean isLeaf()(Code) | | Is this a "leaf" node (i.e. one with no children)?
|
isSelected | public boolean isSelected()(Code) | | |
remove | public void remove()(Code) | | Remove this node from the tree.
|
removeChild | public void removeChild(int offset)(Code) | | 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 existingnode should be removed |
removeChild | void removeChild(TreeControlNode child)(Code) | | 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 |
setExpanded | public void setExpanded(boolean expanded)(Code) | | |
setLast | void setLast(boolean last)(Code) | | |
setSelected | public void setSelected(boolean selected)(Code) | | |
|
|