org.jdesktop.swingx.treetable
public interface TreeTableNode extends javax.swing.tree.TreeNode
JXTreeTable
.Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<? extends TreeTableNode> |
children()
Returns an enumeration this node's children.
|
TreeTableNode |
getChildAt(int childIndex)
Overridden to specify the return type.
|
int |
getColumnCount()
Returns the number of columns supported by this
TreeTableNode . |
TreeTableNode |
getParent()
Overridden to specify the return type.
|
java.lang.Object |
getUserObject()
Returns this node's user object.
|
java.lang.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 |
setUserObject(java.lang.Object userObject)
Sets the user object stored in this node.
|
void |
setValueAt(java.lang.Object aValue,
int column)
Sets the value for the given
column . |
java.util.Enumeration<? extends TreeTableNode> children()
children
in interface javax.swing.tree.TreeNode
TreeTableNode
sjava.lang.Object getValueAt(int column)
column
- the column to queryjava.lang.IndexOutOfBoundsException
- if column
is not a valid column indexTreeTableNode getChildAt(int childIndex)
TreeNode
at index childIndex
. Models that utilize this node should verify
the column count before querying this node, since nodes may return
differing sizes even for the same model.getChildAt
in interface javax.swing.tree.TreeNode
childIndex
- the index of the childTreeTableNode
corresponding to the specified indexint getColumnCount()
TreeTableNode
.TreeTableNode getParent()
TreeTableNode
of the receiver.getParent
in interface javax.swing.tree.TreeNode
TreeTableNode
or null
if this node has
no parent (such nodes are usually root nodes).boolean isEditable(int column)
column
- the column to querytrue
if the column is editable, false
otherwisevoid setValueAt(java.lang.Object aValue, int column)
column
.aValue
- the value to setcolumn
- the column to set the value onjava.lang.Object getUserObject()
void setUserObject(java.lang.Object userObject)
userObject
- the object to store