|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.IndexedMutableTreeNode
public class IndexedMutableTreeNode
A javax.swing.tree.DefaultMutableTreeNode
that stores an index value along with an object.
Field Summary | |
---|---|
protected boolean |
childrenRead
Whether or not the node has its children read |
protected int |
index
Index of node within tree |
protected int |
nextRelativeIndex
Index of next relative from current or previous generation within tree |
Constructor Summary | |
---|---|
IndexedMutableTreeNode()
Creates a tree node that has no parent and no children and an index of 0, but which allows children. |
|
IndexedMutableTreeNode(int index,
java.lang.Object userObject)
Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object and given index. |
|
IndexedMutableTreeNode(int index,
java.lang.Object userObject,
boolean allowsChildren)
Creates a tree node with no parent, no children, initialized with the specified user object and given index, and that allows children only if specified. |
Method Summary | |
---|---|
int |
getIndex()
Returns the index of the node |
int |
getNextRelativeIndex()
Returns the index of next relative from current or previous generation within tree |
boolean |
isChildrenRead()
Returns whether the children have been read |
void |
setChildrenRead(boolean childrenRead)
Sets whether the children have been read |
void |
setNextRelativeIndex(int nextRelativeIndex)
Sets the index of next relative from current or previous generation within tree |
Field Detail |
---|
protected int index
protected int nextRelativeIndex
protected boolean childrenRead
Constructor Detail |
---|
public IndexedMutableTreeNode()
public IndexedMutableTreeNode(int index, java.lang.Object userObject)
index
- index of the node within the treeuserObject
- an Object provided by the user that constitutes the node's datapublic IndexedMutableTreeNode(int index, java.lang.Object userObject, boolean allowsChildren)
index
- index of the node within the treeuserObject
- an Object provided by the user that constitutes the node's dataallowsChildren
- if true, the node is allowed to have child nodes -- otherwise, it is always a leaf nodeMethod Detail |
---|
public int getIndex()
public boolean isChildrenRead()
public void setChildrenRead(boolean childrenRead)
public int getNextRelativeIndex()
public void setNextRelativeIndex(int nextRelativeIndex)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |