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, willBeSetToEditor
getParentObject, getParentObject, setParentObject
decode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
textDecode, textEncode
protected TreeNode parent
protected Vector children
public void clearChildren()
public TreeNode getChild(int index)
TreeNode
public Iterator getChildren()
TreeNode
getChildren
in interface TreeNode
public int getChildCount()
TreeNode
getChildCount
in interface TreeNode
public TreeNode getParent()
TreeNode
public void setParent(TreeNode p)
MutableTreeNode
setParent
in interface MutableTreeNode
public void removeChild(MutableTreeNode ch)
MutableTreeNode
removeChild
in interface MutableTreeNode
public void addChild(MutableTreeNode ch)
MutableTreeNode
addChild
in interface MutableTreeNode
public void insertChild(MutableTreeNode ch, int index)
MutableTreeNode
insertChild
in interface MutableTreeNode
public int indexOfChild(TreeNode child)
TreeNode
indexOfChild
in interface TreeNode
public int[] addressOfChild(TreeNode child)
public TreeNode getChildAt(int[] address)
public boolean canExpand()
public boolean expand()
TreeNode
public boolean isLeaf()
TreeNode
public boolean collapse()
TreeNode
public void freeTreeNode()
protected boolean freeOnCollapse()
public int getFullDepth(int parentDepth)
public LiveTreeNode getFullCopy()
public static Form getTestTree(TreeNode tn, TreeTableModel ttm)