javax.swing

Class JTree.DynamicUtilTreeNode

public static class JTree.DynamicUtilTreeNode extends DefaultMutableTreeNode

Field Summary
protected ObjectchildValue
protected booleanhasChildren
Currently not set or used by this class.
protected booleanloadedChildren
Constructor Summary
DynamicUtilTreeNode(Object value, Object children)
Method Summary
Enumerationchildren()
static voidcreateChildren(DefaultMutableTreeNode parent, Object children)
TreeNodegetChildAt(int pos)
Returns the child node at position pos.
intgetChildCount()
booleanisLeaf()
protected voidloadChildren()

Field Detail

childValue

protected Object childValue

hasChildren

protected boolean hasChildren
Currently not set or used by this class. It might be set and used in later versions of this class.

loadedChildren

protected boolean loadedChildren

Constructor Detail

DynamicUtilTreeNode

public DynamicUtilTreeNode(Object value, Object children)

Method Detail

children

public Enumeration children()

createChildren

public static void createChildren(DefaultMutableTreeNode parent, Object children)

getChildAt

public TreeNode getChildAt(int pos)
Returns the child node at position pos. Subclassed here to load the children if necessary.

Parameters: pos the position of the child node to fetch

Returns: the childnode at the specified position

getChildCount

public int getChildCount()

isLeaf

public boolean isLeaf()

loadChildren

protected void loadChildren()