|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.data.LiveObject
ewe.data.LiveTreeNode
| Field Summary | |
protected Vector |
children
The children of this Node. |
protected TreeNode |
parent
The parent of this Node. |
| Constructor Summary | |
LiveTreeNode()
|
|
| Method Summary | |
void |
addChild(MutableTreeNode ch)
Add a child to this TreeNode at the end of the child list. |
int[] |
addressOfChild(TreeNode child)
|
static int[] |
addressOfChild(TreeNode parent,
String childPath)
This tries to find the address of a child given its path from the parent. |
static int[] |
addressOfChild(TreeNode parent,
TreeNode child)
|
boolean |
canExpand()
Returns whether this node is expandable. |
boolean |
collapse()
Tell it that it can release its children. |
boolean |
expand()
Tell it to expand (ie gather its children). |
static TreeNode |
findNamedChild(TreeNode parent,
String name)
|
TreeNode |
getChild(int index)
Get the child at the specified index. |
TreeNode |
getChildAt(int[] address)
|
static TreeNode |
getChildAt(TreeNode parent,
int[] address)
|
int |
getChildCount()
Get the number of children that this object has. |
Iterator |
getChildren()
Get an Iterator for the children. |
TreeNode |
getParent()
Get the parent of this object. |
static TreeNode |
getParent(TreeNode child,
int levels)
|
static TreeNode |
getSibling(TreeNode child,
int change)
|
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. |
static boolean |
isNamed(TreeNode node,
String name)
|
void |
removeChild(MutableTreeNode ch)
Remove a child from this TreeNode. |
void |
setParent(TreeNode p)
Set the parent of this TreeNode. |
| Methods inherited from class ewe.data.LiveObject |
action, action, addMeToPanel, addObjectToPanel, addToPanel, decode, decoded, decodeFields, enableEditorScrolling, encode, encoded, encodeFields, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, getName, input, makeNewEditor, runAsApp, textDecode, textEncode |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, toString |
| Methods inherited from interface ewe.data.DataUnit |
copyFrom, getNew |
| Methods inherited from interface ewe.util.Copyable |
getCopy |
| Methods inherited from interface ewe.util.Comparable |
compareTo |
| Field Detail |
protected TreeNode parent
protected Vector children
| Constructor Detail |
public LiveTreeNode()
| Method Detail |
public TreeNode getChild(int index)
TreeNode
getChild in interface TreeNodepublic Iterator getChildren()
TreeNode
getChildren in interface TreeNodepublic int getChildCount()
TreeNode
getChildCount in interface TreeNodepublic TreeNode getParent()
TreeNode
getParent in interface TreeNodepublic void setParent(TreeNode p)
MutableTreeNode
setParent in interface MutableTreeNodepublic void removeChild(MutableTreeNode ch)
MutableTreeNode
removeChild in interface MutableTreeNodepublic void addChild(MutableTreeNode ch)
MutableTreeNode
addChild in interface MutableTreeNode
public void insertChild(MutableTreeNode ch,
int index)
MutableTreeNode
insertChild in interface MutableTreeNodepublic int indexOfChild(TreeNode child)
TreeNode
indexOfChild in interface TreeNodepublic int[] addressOfChild(TreeNode child)
public TreeNode getChildAt(int[] address)
public static TreeNode getChildAt(TreeNode parent,
int[] address)
public static int[] addressOfChild(TreeNode parent,
TreeNode child)
public static boolean isNamed(TreeNode node,
String name)
public static TreeNode findNamedChild(TreeNode parent,
String name)
public static int[] addressOfChild(TreeNode parent,
String childPath)
public static TreeNode getSibling(TreeNode child,
int change)
public static TreeNode getParent(TreeNode child,
int levels)
public boolean canExpand()
TreeNode
canExpand in interface TreeNodepublic boolean expand()
TreeNode
expand in interface TreeNodepublic boolean isLeaf()
TreeNode
isLeaf in interface TreeNodepublic boolean collapse()
TreeNode
collapse in interface TreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||