|
||||||||||
| 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 | |
|---|---|
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. |
| Methods inherited from interface javax.swing.tree.TreeNode |
|---|
getAllowsChildren, getChildCount, getIndex, isLeaf |
| Method Detail |
|---|
java.util.Enumeration<? extends TreeTableNode> children()
children in interface javax.swing.tree.TreeNodeTreeTableNodesjava.lang.Object getValueAt(int column)
column - the column to query
java.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.TreeNodechildIndex - the index of the child
TreeTableNode corresponding to the specified indexint getColumnCount()
TreeTableNode.
TreeTableNode getParent()
TreeTableNode of the receiver.
getParent in interface javax.swing.tree.TreeNodeTreeTableNode 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 otherwise
void 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||