|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.tm.plugin.TreeNode
Tree model for use with JFace TreeViewer.
The class is an adapter class containing the original object in the content
field.
A TreeNode can have a parent TreeNode. If it is
a root node the parent must be null.
| Constructor Summary | |
TreeNode(Object newContent)
Constructor. |
|
TreeNode(Object newContent,
TreeNode newParent)
Constructor. |
|
| Method Summary | |
boolean |
equals(Object obj)
Delegates the equals method to the contained content object. |
Object |
getContent()
Getter for the field content. |
TreeNode |
getParent()
Getter for the field parent. |
int |
hashCode()
Returns the hashCode of the contained content object. |
String |
toString()
Delegates the toString call to the content object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TreeNode(Object newContent)
null.
newContent - The actual content object.
public TreeNode(Object newContent,
TreeNode newParent)
newContent - The actual content object. Will get stored in the
content field.newParent - The parent TreeNode object.| Method Detail |
public Object getContent()
public TreeNode getParent()
public boolean equals(Object obj)
Object.equals(java.lang.Object)public int hashCode()
TreeNode has the same hash as his content!
Object.hashCode()public String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||