public interface TreeTableNode extends MutableTreeNode
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TREE_COLUMN
The default column in the tree table that contains the tree.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndexForNewChild(TreeTableNode newChild)
Get an index to insert a new child into the node that is consistent with
the current ordering of the children (if any).
|
int |
getTreeColumn() |
Object |
getValueAt(int columnIndex)
Sets the value in the node at columnIndex to aValue.
|
boolean |
isSorted()
Determine if the children are sorted
|
void |
setTreeColumn(int column)
Set the column in the tree table that contains the tree.
|
void |
setValueAt(Object aValue,
int columnIndex)
Sets the value in the node at columnIndex to aValue.
|
void |
sort(int column,
boolean ascending)
Sort the children according to the values of the input column identifier,
in either ascending or descending order.
|
void |
sort(int column,
boolean ascending,
boolean asksAllowsChildren)
Sort the children according to the values of the input column identifier,
in either ascending or descending order.
|
void |
sort(TreeTableNodeComparator comparator)
Sort the children using the natural ordering of the nodes according
to the specified comparator.
|
void |
sort(TreeTableNodeComparator comparator,
int column,
boolean ascending,
boolean asksAllowsChildren)
Sort the children using the natural ordering of the nodes according
to the specified comparator.
|
insert, remove, remove, removeFromParent, setParent, setUserObject
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
static final int DEFAULT_TREE_COLUMN
Object getValueAt(int columnIndex)
void setValueAt(Object aValue, int columnIndex)
void setTreeColumn(int column)
column
- int getTreeColumn()
void sort(int column, boolean ascending)
void sort(int column, boolean ascending, boolean asksAllowsChildren)
void sort(TreeTableNodeComparator comparator, int column, boolean ascending, boolean asksAllowsChildren)
void sort(TreeTableNodeComparator comparator)
boolean isSorted()
int getIndexForNewChild(TreeTableNode newChild)
Copyright © 2003, 2023, Oracle and/or its affiliates.