org.openorb.board.shared.treetable
Class DataNode

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

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

OpenORB GUI components / TreeTable / DataNode

Author:
Olivier Modica
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
DataNode(int nodeType, java.lang.Object nodeValue)
          Constructor
 
Method Summary
 boolean getAllowsChildren()
          getAllowsChildren
 int getLinkedTableRowIndex()
          Get the linked TableCell ( -2 if not in table, -1 if table parent )
 TreeNode getLinkedTreeNode()
          Get the linked TreeNode ( null if not in tree )
 java.lang.Object getNodeProperty(java.lang.Object key)
          Get a property of this node
 int getNodeType()
          Get the type of this node
 java.lang.Object getNodeValue()
          Get the value of this node
 boolean isLeaf()
          isLeaf
 void setLinkedTableRowIndex(int linkedTableRowIndex)
          Set the linked TableCell ( -2 if not in table, -1 if table parent )
 void setLinkedTreeNode(TreeNode linkedTreeNode)
          Set the linked TreeNode ( null if not in tree )
 void setNodeProperty(java.lang.Object key, java.lang.Object value)
          Set a property of this node
 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

DataNode

public DataNode(int nodeType,
                java.lang.Object nodeValue)
Constructor

Method Detail

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


getNodeProperty

public java.lang.Object getNodeProperty(java.lang.Object key)
Get a property of this node


setNodeProperty

public void setNodeProperty(java.lang.Object key,
                            java.lang.Object value)
Set a property of this node


getLinkedTreeNode

public TreeNode getLinkedTreeNode()
Get the linked TreeNode ( null if not in tree )


setLinkedTreeNode

public void setLinkedTreeNode(TreeNode linkedTreeNode)
Set the linked TreeNode ( null if not in tree )


getLinkedTableRowIndex

public int getLinkedTableRowIndex()
Get the linked TableCell ( -2 if not in table, -1 if table parent )


setLinkedTableRowIndex

public void setLinkedTableRowIndex(int linkedTableRowIndex)
Set the linked TableCell ( -2 if not in table, -1 if table parent )


isLeaf

public boolean isLeaf()
isLeaf

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

getAllowsChildren

public boolean getAllowsChildren()
getAllowsChildren

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