org.openorb.board.shared.treetable
Class TreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.openorb.board.shared.treetable.TreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class TreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements java.lang.Cloneable

OpenORB GUI Components / Tree Table / TreeNode

Author:
Olivier Modica
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
TreeNode(int nodeType, java.lang.Object value)
          Constructor
 
Method Summary
 boolean getAllowsChildren()
          Return getAllowsChildren
 DataNode getLinkedDataNode()
          Get the linked datanode
 int getNodeType()
          Get the type of this node
 java.lang.Object getNodeValue()
          Get the value of this node
 boolean isLeaf()
          Return isLeaf
 void setLinkedDataNode(DataNode linkedDataNode)
          Set the linked datanode
 void setNodeType(int nodeType)
          Set the type of this node
 void setNodeValue(java.lang.Object value)
          Set the value of this node
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode(int nodeType,
                java.lang.Object value)
Constructor

Method Detail

getLinkedDataNode

public DataNode getLinkedDataNode()
Get the linked datanode


setLinkedDataNode

public void setLinkedDataNode(DataNode linkedDataNode)
Set the linked datanode


getNodeType

public int getNodeType()
Get the type of this node


setNodeType

public void setNodeType(int nodeType)
Set the type of this node


getNodeValue

public java.lang.Object getNodeValue()
Get the value of this node


setNodeValue

public void setNodeValue(java.lang.Object value)
Set the value of this node


isLeaf

public boolean isLeaf()
Return isLeaf

Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

getAllowsChildren

public boolean getAllowsChildren()
Return getAllowsChildren

Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode