|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.gui.dbetree.HeadNode
| Constructor Summary | |
HeadNode(DBElementTreeModel parent)
HeadNode Constructor. |
|
HeadNode(java.util.List properties,
DBElementTreeModel parent)
HeadNode Constructor. |
|
| Method Summary | |
boolean |
add(DBElement element)
Adds a DBElement to this property node tree. |
void |
add(java.util.List list)
Adds a list of DBElements to this property node tree. |
void |
addNotify(javax.swing.event.TreeModelEvent event)
|
java.util.Iterator |
children()
|
boolean |
getAllowsChildren()
|
java.lang.Object |
getChildAt(int index)
Returns this node's child at the given index. |
int |
getChildCount()
Returns the number of children for this node. |
int |
getIndexOfChild(java.lang.Object child)
Gets index of given child. |
int |
getLeafNodeCount()
Returns the number of leaf nodes in this tree. |
java.util.List |
getLeafNodes()
|
Node |
getParent()
|
PropertyNode |
getPropertyNode()
|
boolean |
isLeaf()
|
boolean |
remove(DBElement element)
Removes given element from this node down. |
javax.swing.event.TreeModelEvent |
remove(ValueNode node)
Removes given value node from this node down. |
boolean |
removeAll()
Removes all DBElements from this node down. |
void |
removeNotify(javax.swing.event.TreeModelEvent event)
|
void |
setParent(DBElementTreeModel parent)
|
java.lang.String |
toString()
Returns string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HeadNode(java.util.List properties,
DBElementTreeModel parent)
public HeadNode(DBElementTreeModel parent)
| Method Detail |
public void setParent(DBElementTreeModel parent)
public boolean add(DBElement element)
add in interface Nodeelement - the element to add.
public void add(java.util.List list)
list - the list to add.public boolean remove(DBElement element)
remove in interface Nodeelement - element to remove
public javax.swing.event.TreeModelEvent remove(ValueNode node)
node - node to remove
public boolean removeAll()
removeAll in interface Node
public java.lang.Object getChildAt(int index)
throws java.lang.IndexOutOfBoundsException
getChildAt in interface Nodejava.lang.IndexOutOfBoundsExceptionpublic int getChildCount()
getChildCount in interface Nodepublic int getIndexOfChild(java.lang.Object child)
getIndexOfChild in interface Nodechild - child
public java.lang.String toString()
public PropertyNode getPropertyNode()
public java.util.List getLeafNodes()
getLeafNodes in interface Nodepublic java.util.Iterator children()
children in interface Nodepublic boolean getAllowsChildren()
getAllowsChildren in interface Nodepublic Node getParent()
getParent in interface Nodepublic boolean isLeaf()
isLeaf in interface Nodepublic void addNotify(javax.swing.event.TreeModelEvent event)
addNotify in interface Nodepublic int getLeafNodeCount()
getLeafNodeCount in interface Nodepublic void removeNotify(javax.swing.event.TreeModelEvent event)
removeNotify in interface Node
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||