|
Preferences Editor | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.jppietsch.prefedit.AbstractTreeNode
Baseclass for this package's collection of tree nodes.
| Field Summary | |
private List |
childs
List of child nodes. |
| Constructor Summary | |
AbstractTreeNode()
|
|
| Method Summary | |
Enumeration |
children()
Returns an enumeration of the direct childs of this node. |
private List |
childs()
Returns the list of childs. |
boolean |
getAllowsChildren()
All nodes are preferences and therefore allow childs. |
TreeNode |
getChildAt(int aChildIndex)
Returns the n'th child node of this node. |
int |
getChildCount()
Returns the number of child nodes. |
int |
getIndex(TreeNode aNode)
Returns the index of a given child. |
abstract Preferences |
getPreferences()
Returns the preferences represented by this node. |
protected abstract void |
initializeChilds(List someChilds)
Fills the list of child nodes. |
boolean |
isLeaf()
Does this node have any childs? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeNode |
getParent |
| Field Detail |
private List childs
| Constructor Detail |
public AbstractTreeNode()
| Method Detail |
public TreeNode getChildAt(int aChildIndex)
getChildAt in interface TreeNodeaChildIndex - Zero-based index.
public int getChildCount()
getChildCount in interface TreeNodeinitializeChilds(List).public int getIndex(TreeNode aNode)
getIndex in interface TreeNodeaNode - of which the index is searched.
aNode or -1.public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodetrue.public boolean isLeaf()
isLeaf in interface TreeNodepublic abstract Preferences getPreferences()
null if
this is the root.public Enumeration children()
children in interface TreeNodeprotected abstract void initializeChilds(List someChilds)
someChilds - to be filled.private List childs()
initializeChilds(List) when
this method is called the first time.
childs.
|
Preferences Editor | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||