|
swingx Version 2009-07-31 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeTableNode
Defines the requirements for an object that can be used as a tree node in a
JXTreeTable
.
Method Summary | |
---|---|
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. |
Object |
getUserObject()
Returns this node's user object. |
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(Object userObject)
Sets the user object stored in this node. |
void |
setValueAt(Object aValue,
int column)
Sets the value for the given column . |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
getAllowsChildren, getChildCount, getIndex, isLeaf |
Method Detail |
---|
Enumeration<? extends TreeTableNode> children()
children
in interface TreeNode
TreeTableNode
sObject getValueAt(int column)
column
- the column to query
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 TreeNode
childIndex
- the index of the child
TreeTableNode
corresponding to the specified indexint getColumnCount()
TreeTableNode
.
TreeTableNode getParent()
TreeTableNode
of the receiver.
getParent
in interface TreeNode
TreeTableNode
or null
if this node has
no parent (such nodes are usually root nodes).boolean isEditable(int column)
column
- the column to query
true
if the column is editable, false
otherwisevoid setValueAt(Object aValue, int column)
column
.
aValue
- the value to setcolumn
- the column to set the value onObject getUserObject()
void setUserObject(Object userObject)
userObject
- the object to store
|
swingx Version 2009-07-31 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |