|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.toolbox.ui.widget.tree.DefaultTreeNode
public class DefaultTreeNode
This is the default TreeNode used by DefaultTreeModel.
| Constructor Summary | |
|---|---|
DefaultTreeNode()
Creates a nameless root DefaultTreeNode. |
|
DefaultTreeNode(DefaultTreeNode parent)
|
|
DefaultTreeNode(java.lang.Object content)
|
|
DefaultTreeNode(java.lang.Object content,
DefaultTreeNode parent)
|
|
DefaultTreeNode(java.lang.String name)
|
|
DefaultTreeNode(java.lang.String name,
DefaultTreeNode parent)
|
|
DefaultTreeNode(java.lang.String name,
DefaultTreeNode parent,
java.lang.Object content)
|
|
DefaultTreeNode(java.lang.String name,
java.lang.Object content)
|
|
| Method Summary | |
|---|---|
int |
addChild(java.lang.Object child)
|
boolean |
addChild(java.lang.Object child,
int index)
|
int |
addChildren(java.util.Collection children)
|
int |
addChildren(java.lang.Object[] children)
|
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object node)
Compares this object to another. |
boolean |
contains(DefaultTreeNode child)
|
protected void |
createChildList()
|
boolean |
equals(java.lang.Object node)
Returns true if the specified object is semantically equal to this instance. |
boolean |
exists()
Not implemented. |
DefaultTreeNode |
getChild(int index)
|
int |
getChildCount()
|
int |
getChildIndex(DefaultTreeNode child)
|
java.util.List |
getChildren()
|
java.lang.Object |
getContent()
|
java.lang.String |
getFullName()
Convenience method for Object.toString(). |
java.util.Iterator |
getIterator()
|
java.util.ListIterator |
getListIterator()
|
java.lang.String |
getName()
Convenience method for Object.toString(). |
java.lang.String |
getNamespace()
Not implemented. |
DefaultTreeNode |
getParent()
|
DefaultTreeNode |
getRoot()
|
java.util.List |
getRoots()
|
java.lang.String |
getSeparator()
Not implemented. |
char |
getSeparatorChar()
Not implemented. |
ObjectDefinition |
getType()
Not implemented. |
protected void |
initializeDefaultTreeNode()
|
boolean |
isDescendentOf(DefaultTreeNode ancestor)
|
boolean |
isEmpty()
|
boolean |
isModified()
Return whether this node has undergone changes. |
boolean |
isRoot()
|
int |
removeAllChildren()
|
int |
removeChild(DefaultTreeNode child)
|
DefaultTreeNode |
removeChild(int index)
|
void |
setContent(java.lang.Object content)
Sets the object contained within this node. |
void |
setName(java.lang.String name)
Sets the name of this node. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.metamatrix.common.tree.TreeNode |
|---|
toString |
| Constructor Detail |
|---|
public DefaultTreeNode()
public DefaultTreeNode(java.lang.String name)
public DefaultTreeNode(DefaultTreeNode parent)
public DefaultTreeNode(java.lang.Object content)
public DefaultTreeNode(java.lang.String name,
DefaultTreeNode parent)
public DefaultTreeNode(java.lang.String name,
java.lang.Object content)
public DefaultTreeNode(java.lang.Object content,
DefaultTreeNode parent)
public DefaultTreeNode(java.lang.String name,
DefaultTreeNode parent,
java.lang.Object content)
| Method Detail |
|---|
public int addChild(java.lang.Object child)
public boolean addChild(java.lang.Object child,
int index)
public int addChildren(java.lang.Object[] children)
public int addChildren(java.util.Collection children)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - Never thrownpublic int compareTo(java.lang.Object node)
TreeNode
Note: this method is consistent with
equals(), meaning that
(compare(x, y)==0) == (x.equals(y)).
compareTo in interface TreeNodecompareTo in interface java.lang.Comparablepublic boolean contains(DefaultTreeNode child)
protected void createChildList()
public boolean equals(java.lang.Object node)
TreeNodecompareTo().
equals in interface TreeNodeequals in class java.lang.Objectpublic boolean exists()
exists in interface TreeNodepublic DefaultTreeNode getChild(int index)
public int getChildCount()
public int getChildIndex(DefaultTreeNode child)
public java.util.List getChildren()
public java.lang.Object getContent()
public java.lang.String getFullName()
Object.toString(). Exists only to satisfy interface requirement.
getFullName in interface TreeNodepublic java.util.Iterator getIterator()
public java.util.ListIterator getListIterator()
public java.lang.String getName()
Object.toString().
getName in interface TreeNodepublic java.lang.String getNamespace()
getNamespace in interface TreeNodepublic DefaultTreeNode getParent()
public DefaultTreeNode getRoot()
public java.util.List getRoots()
public java.lang.String getSeparator()
getSeparator in interface TreeNodepublic char getSeparatorChar()
getSeparatorChar in interface TreeNodepublic ObjectDefinition getType()
getType in interface TreeNodeprotected void initializeDefaultTreeNode()
public boolean isDescendentOf(DefaultTreeNode ancestor)
public boolean isEmpty()
public boolean isModified()
TreeNode
isModified in interface TreeNodepublic boolean isRoot()
public int removeAllChildren()
public int removeChild(DefaultTreeNode child)
public DefaultTreeNode removeChild(int index)
public void setContent(java.lang.Object content)
content - The object contained within this nodepublic void setName(java.lang.String name)
name - The name of the node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||