|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jfree.report.modules.gui.config.model.AbstractConfigTreeNode
An abstract base implementation of the config tree node interface. The implementation provides all base services needed to have an valid TreeNode.
| Constructor Summary | |
AbstractConfigTreeNode(java.lang.String name)
Creates a new config tree node with the given name. |
|
| Method Summary | |
void |
add(ConfigTreeNode node)
Adds the given node to the tree model. |
java.util.Enumeration |
children()
Returns the children of the receiver as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
Returns the child TreeNode at index childIndex. |
int |
getChildCount()
Returns the number of children TreeNodes the receiver contains. |
int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. |
java.lang.String |
getName()
Return the name of the node. |
javax.swing.tree.TreeNode |
getParent()
Return the parent of this node or null if there is no parent. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
protected void |
reset()
Removes all child nodes. |
void |
setParent(javax.swing.tree.TreeNode parent)
Defines the parent of this node, or null if the node should not have a parent. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AbstractConfigTreeNode(java.lang.String name)
name - the name of the node.| Method Detail |
public void add(ConfigTreeNode node)
node - the new node that should be added.protected void reset()
public javax.swing.tree.TreeNode getChildAt(int childIndex)
TreeNode at index childIndex.childIndex - the index of the child node within this parent node.public int getChildCount()
TreeNodes the receiver contains.public boolean getAllowsChildren()
public int getIndex(javax.swing.tree.TreeNode node)
node in the receivers children. If the receiver
does not contain node, -1 will be returned.node - the suspected child node.public boolean isLeaf()
public java.util.Enumeration children()
Enumeration.public java.lang.String getName()
ConfigTreeNode.getName()public javax.swing.tree.TreeNode getParent()
TreeNode.getParent()public void setParent(javax.swing.tree.TreeNode parent)
parent - the new parent or null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||