|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.tree.DefaultMutableTreeNode<M>
com.sptci.echo.tree.TreeNode<M>
public class TreeNode<M>
A tree node that maintains a initialised flag to enable lazy
loading of child nodes.
© Copyright 2009 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected boolean |
initialised
A flag used to indicate that this node is un-initialised. |
| Fields inherited from class echopoint.tree.DefaultMutableTreeNode |
|---|
actionCommand, allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
TreeNode()
Default constructor. |
|
TreeNode(M model)
Create a new tree node with the specified model object backing it. |
|
TreeNode(M model,
boolean allowsChildren)
Create a new node with the specified model and flag indicating whether the node allows children. |
|
| Method Summary | |
|---|---|
boolean |
isLeaf()
Over-ridden to always return false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean initialised
DefaultMutableTreeNode.getChildCount() and set accordingly. Default to false.
| Constructor Detail |
|---|
public TreeNode()
public TreeNode(M model)
model - The model object backing the node.
public TreeNode(M model,
boolean allowsChildren)
model - The model object backing the node.allowsChildren - A flag indiciating whether the node allows children.| Method Detail |
|---|
public boolean isLeaf()
false. This enables lazy loading
of the children of nodes.
isLeaf in interface TreeNodeisLeaf in class DefaultMutableTreeNode<M>
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||