org.jdesktop.swingx.treetable
Class DefaultMutableTreeTableNode

java.lang.Object
  extended by org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
      extended by org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
All Implemented Interfaces:
TreeNode, MutableTreeTableNode, TreeTableNode

public class DefaultMutableTreeTableNode
extends AbstractMutableTreeTableNode

A default implementation of an AbstractMutableTreeTableNode that returns getUserObject().toString() for all value queries. This implementation is designed mainly for testing. It is NOT recommended to use this implementation. Any user that needs to create TreeTableNodes should consider directly extending AbstractMutableTreeTableNode or directly implementing the interface.


Field Summary
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
allowsChildren, children, parent, userObject
 
Constructor Summary
DefaultMutableTreeTableNode()
           
DefaultMutableTreeTableNode(Object userObject)
           
DefaultMutableTreeTableNode(Object userObject, boolean allowsChildren)
           
 
Method Summary
 int getColumnCount()
          Returns the number of columns supported by this TreeTableNode.
 Object getValueAt(int column)
          Gets the value for this node that corresponds to a particular tabular column.
 boolean isEditable(int column)
          Determines whether the specified column is editable.
 void setValueAt(Object aValue, int column)
          Sets the value for the given column.
 
Methods inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
add, children, createChildrenList, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, getUserObject, insert, isLeaf, remove, remove, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMutableTreeTableNode

public DefaultMutableTreeTableNode()

DefaultMutableTreeTableNode

public DefaultMutableTreeTableNode(Object userObject)
Parameters:
userObject -

DefaultMutableTreeTableNode

public DefaultMutableTreeTableNode(Object userObject,
                                   boolean allowsChildren)
Parameters:
userObject -
allowsChildren -
Method Detail

getValueAt

public Object getValueAt(int column)
Gets the value for this node that corresponds to a particular tabular column.

Parameters:
column - the column to query
Returns:
the value for the queried column

getColumnCount

public int getColumnCount()
Returns the number of columns supported by this TreeTableNode.

Returns:
the number of columns this node supports

isEditable

public boolean isEditable(int column)
Determines whether the specified column is editable.

Specified by:
isEditable in interface TreeTableNode
Overrides:
isEditable in class AbstractMutableTreeTableNode
Parameters:
column - the column to query
Returns:
always returns false

setValueAt

public void setValueAt(Object aValue,
                       int column)
Sets the value for the given column.

Specified by:
setValueAt in interface TreeTableNode
Overrides:
setValueAt in class AbstractMutableTreeTableNode
Parameters:
aValue - the value to set
column - the column to set the value on