Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.tree.DefaultMutableTreeNode | +--com.sun.java.swing.JTree.DynamicUtilTreeNode
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Field Summary | |
java.lang.Object | childValue
Value to create children with. |
boolean | hasChildren
|
boolean | loadedChildren
|
Fields inherited from class com.sun.java.swing.tree.DefaultMutableTreeNode | |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
JTree.DynamicUtilTreeNode(java.lang.Object value,
java.lang.Object children)
Creates a node with the specified object as its value and with the specified children. |
Method Summary | |
static void | createChildren(DefaultMutableTreeNode parent,
java.lang.Object children)
Adds to parent all the children in children .
|
int | getChildCount()
Returns the number of child nodes. |
boolean | isLeaf()
Returns true if this node allows children. |
void | loadChildren()
Loads the children based on childValue. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected boolean hasChildren
protected java.lang.Object childValue
protected boolean loadedChildren
Constructor Detail |
public JTree.DynamicUtilTreeNode(java.lang.Object value, java.lang.Object children)
value
- the Object that is the value for the new node
children
- an array of Objects, a Vector, or a Hashtable
used to create the child nodes. If any other
object is specified, or if the value is null,
then the node is not allowed to have children.Method Detail |
public static void createChildren(DefaultMutableTreeNode parent, java.lang.Object children)
children
.
If children
is an array or Vector all of its
elements are added is children, otherwise if children
is a Hashtable all the key/value pairs are added in the order
Enumeration returns them.public boolean isLeaf()
public int getChildCount()
protected void loadChildren()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |