|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--graphic.services.tree.DefaultTreeNode
This class is a default implementation of a TreeNode. It is sorted after the toString() method.
Constructor Summary | |
DefaultTreeNode(Object element)
Set-Constructor. |
Method Summary | |
int |
compareTo(TreeNode treeNode)
Compares the node with another node If the node that is beeing compared with is larger than the node itself, -1 is returned. |
Object |
getElement()
Returns the elementet - Not 'this', but the object, that tis node is holding. |
TreeNode |
getLeftNode()
Returns LeftNode |
TreeNode |
getRightNode()
Returns RightNode |
String |
getSortingQualifier()
Returns what should be sorted by. |
void |
setLeftNode(TreeNode left)
Saves 'LeftNode' in the data core. |
void |
setRightNode(TreeNode right)
Saves 'RightNode' in the data core. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultTreeNode(Object element)
element
- Method Detail |
public String getSortingQualifier()
TreeNode
getSortingQualifier
in interface TreeNode
public void setLeftNode(TreeNode left)
TreeNode
setLeftNode
in interface TreeNode
left
- public void setRightNode(TreeNode right)
TreeNode
setRightNode
in interface TreeNode
right
- public TreeNode getLeftNode()
TreeNode
getLeftNode
in interface TreeNode
public TreeNode getRightNode()
TreeNode
getRightNode
in interface TreeNode
public Object getElement()
TreeNode
getElement
in interface TreeNode
public int compareTo(TreeNode treeNode)
TreeNode
compareTo
in interface TreeNode
treeNode
- The node that is compared with
|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |