public class LiveTreeNode extends LiveObject implements MutableTreeNode
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
children
The children of this Node.
|
protected TreeNode |
parent
The parent of this Node.
|
| Constructor and Description |
|---|
LiveTreeNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(MutableTreeNode ch)
Add a child to this TreeNode at the end of the child list.
|
int[] |
addressOfChild(TreeNode child) |
boolean |
canExpand()
This tries to find the address of a child given its path from the parent.
|
void |
clearChildren() |
boolean |
collapse()
Tell it that it can release its children.
|
boolean |
expand()
Tell it to expand (ie gather its children).
|
protected boolean |
freeOnCollapse() |
void |
freeTreeNode() |
TreeNode |
getChild(int index)
Get the child at the specified index.
|
TreeNode |
getChildAt(int[] address) |
int |
getChildCount()
Get the number of children that this object has.
|
Iterator |
getChildren()
Get an Iterator for the children.
|
LiveTreeNode |
getFullCopy() |
int |
getFullDepth(int parentDepth) |
TreeNode |
getParent()
Get the parent of this object.
|
static Form |
getTestTree(TreeNode tn,
TreeTableModel ttm) |
int |
indexOfChild(TreeNode child)
Return the index of the specified child.
|
void |
insertChild(MutableTreeNode ch,
int index)
Insert a child at the specified index.
|
boolean |
isLeaf()
Returns whether this is a node or leaf.
|
void |
removeChild(MutableTreeNode ch)
Remove a child from this TreeNode.
|
void |
setParent(TreeNode p)
Set the parent of this TreeNode.
|
action, action, addMeToPanel, addObjectToPanel, addToPanel, editorCanExit, enableEditorScrolling, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, getName, input, isNamed, liveMain, main, makeNewEditor, menuItemSelected, prepareMainPanel, runAsApp, setToEditor, willBeSetToEditorgetParentObject, getParentObject, setParentObjectdecode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNewclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTotextDecode, textEncodeprotected TreeNode parent
protected Vector children
public void clearChildren()
public TreeNode getChild(int index)
TreeNodepublic Iterator getChildren()
TreeNodegetChildren in interface TreeNodepublic int getChildCount()
TreeNodegetChildCount in interface TreeNodepublic TreeNode getParent()
TreeNodepublic void setParent(TreeNode p)
MutableTreeNodesetParent in interface MutableTreeNodepublic void removeChild(MutableTreeNode ch)
MutableTreeNoderemoveChild in interface MutableTreeNodepublic void addChild(MutableTreeNode ch)
MutableTreeNodeaddChild in interface MutableTreeNodepublic void insertChild(MutableTreeNode ch, int index)
MutableTreeNodeinsertChild in interface MutableTreeNodepublic int indexOfChild(TreeNode child)
TreeNodeindexOfChild in interface TreeNodepublic int[] addressOfChild(TreeNode child)
public TreeNode getChildAt(int[] address)
public boolean canExpand()
public boolean expand()
TreeNodepublic boolean isLeaf()
TreeNodepublic boolean collapse()
TreeNodepublic void freeTreeNode()
protected boolean freeOnCollapse()
public int getFullDepth(int parentDepth)
public LiveTreeNode getFullCopy()
public static Form getTestTree(TreeNode tn, TreeTableModel ttm)