Package com.portal.pfc.ui
Interface TreeTableNode
- All Superinterfaces:
MutableTreeNode,TreeNode
- All Known Implementing Classes:
DefaultTreeTableNode,EDRTreeTableNode
A mutable tree node that supports column data in order to provide a usable
API for a tree table. The tree node also supports sorting of the tree based
on a specified column.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default column in the tree table that contains the tree. -
Method Summary
Modifier and TypeMethodDescriptionintgetIndexForNewChild(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).intgetValueAt(int columnIndex) Sets the value in the node at columnIndex to aValue.booleanisSorted()Determine if the children are sortedvoidsetTreeColumn(int column) Set the column in the tree table that contains the tree.voidsetValueAt(Object aValue, int columnIndex) Sets the value in the node at columnIndex to aValue.voidsort(int column, boolean ascending) Sort the children according to the values of the input column identifier, in either ascending or descending order.voidsort(int column, boolean ascending, boolean asksAllowsChildren) Sort the children according to the values of the input column identifier, in either ascending or descending order.voidsort(TreeTableNodeComparator comparator) Sort the children using the natural ordering of the nodes according to the specified comparator.voidsort(TreeTableNodeComparator comparator, int column, boolean ascending, boolean asksAllowsChildren) Sort the children using the natural ordering of the nodes according to the specified comparator.Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObjectMethods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
-
Field Details
-
DEFAULT_TREE_COLUMN
static final int DEFAULT_TREE_COLUMNThe default column in the tree table that contains the tree.- See Also:
-
-
Method Details
-
getValueAt
Sets the value in the node at columnIndex to aValue. -
setValueAt
Sets the value in the node at columnIndex to aValue. -
setTreeColumn
void setTreeColumn(int column) Set the column in the tree table that contains the tree.- Parameters:
column-
-
getTreeColumn
int getTreeColumn()- Returns:
- the column in the tree table that contains the tree.
-
sort
void sort(int column, boolean ascending) Sort the children according to the values of the input column identifier, in either ascending or descending order. -
sort
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. Also specify how the ordering determines whether the child node is a branch or a leaf. -
sort
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. -
sort
Sort the children using the natural ordering of the nodes according to the specified comparator. -
isSorted
boolean isSorted()Determine if the children are sorted -
getIndexForNewChild
Get an index to insert a new child into the node that is consistent with the current ordering of the children (if any).
-