Package org.jdesktop.swingx.treetable
Class DefaultMutableTreeTableNode
- java.lang.Object
-
- org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
-
- org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
-
- All Implemented Interfaces:
javax.swing.tree.TreeNode,MutableTreeTableNode,TreeTableNode
public class DefaultMutableTreeTableNode extends AbstractMutableTreeTableNode
-
-
Field Summary
-
Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
allowsChildren, children, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description DefaultMutableTreeTableNode()DefaultMutableTreeTableNode(java.lang.Object userObject)DefaultMutableTreeTableNode(java.lang.Object userObject, boolean allowsChildren)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()Returns the number of columns supported by thisTreeTableNode.java.lang.ObjectgetValueAt(int column)Gets the value for this node that corresponds to a particular tabular column.booleanisEditable(int column)Determines whether the specified column is editable.voidsetValueAt(java.lang.Object aValue, int column)Sets the value for the givencolumn.-
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
-
-
-
-
Constructor Detail
-
DefaultMutableTreeTableNode
public DefaultMutableTreeTableNode()
-
DefaultMutableTreeTableNode
public DefaultMutableTreeTableNode(java.lang.Object userObject)
- Parameters:
userObject-
-
DefaultMutableTreeTableNode
public DefaultMutableTreeTableNode(java.lang.Object userObject, boolean allowsChildren)- Parameters:
userObject-allowsChildren-
-
-
Method Detail
-
getValueAt
public java.lang.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 thisTreeTableNode.- Returns:
- the number of columns this node supports
-
isEditable
public boolean isEditable(int column)
Determines whether the specified column is editable.- Specified by:
isEditablein interfaceTreeTableNode- Overrides:
isEditablein classAbstractMutableTreeTableNode- Parameters:
column- the column to query- Returns:
- always returns
false
-
setValueAt
public void setValueAt(java.lang.Object aValue, int column)Sets the value for the givencolumn.- Specified by:
setValueAtin interfaceTreeTableNode- Overrides:
setValueAtin classAbstractMutableTreeTableNode- Parameters:
aValue- the value to setcolumn- the column to set the value on
-
-