org.openorb.board.shared.treetable

Class DataNode

public class DataNode extends DefaultMutableTreeNode implements Cloneable

OpenORB GUI components / TreeTable / DataNode

Author: Olivier Modica

Constructor Summary
DataNode(int nodeType, Object nodeValue)
Constructor
Method Summary
booleangetAllowsChildren()
getAllowsChildren
intgetLinkedTableRowIndex()
Get the linked TableCell ( -2 if not in table, -1 if table parent )
TreeNodegetLinkedTreeNode()
Get the linked TreeNode ( null if not in tree )
ObjectgetNodeProperty(Object key)
Get a property of this node
intgetNodeType()
Get the type of this node
ObjectgetNodeValue()
Get the value of this node
booleanisLeaf()
isLeaf
voidsetLinkedTableRowIndex(int linkedTableRowIndex)
Set the linked TableCell ( -2 if not in table, -1 if table parent )
voidsetLinkedTreeNode(TreeNode linkedTreeNode)
Set the linked TreeNode ( null if not in tree )
voidsetNodeProperty(Object key, Object value)
Set a property of this node
voidsetNodeType(int nodeType)
Set the type of this node
voidsetNodeValue(Object value)
Set the value of this node

Constructor Detail

DataNode

public DataNode(int nodeType, Object nodeValue)
Constructor

Method Detail

getAllowsChildren

public boolean getAllowsChildren()
getAllowsChildren

getLinkedTableRowIndex

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

getLinkedTreeNode

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

getNodeProperty

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

getNodeType

public int getNodeType()
Get the type of this node

getNodeValue

public Object getNodeValue()
Get the value of this node

isLeaf

public boolean isLeaf()
isLeaf

setLinkedTableRowIndex

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

setLinkedTreeNode

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

setNodeProperty

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

setNodeType

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

setNodeValue

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