public abstract class TreeTableNodeComparator extends Object implements Comparator
| Constructor and Description |
|---|
TreeTableNodeComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
abstract int |
compareColumnValues(Object colVal1,
Object colVal2)
Compare the two tree table node column values.
|
void |
setAscending(boolean ascending) |
void |
setAsksAllowsChildren(boolean asksAllowsChildren)
Leaf nodes should appear before non-leaf nodes.
|
void |
setColumn(int column)
Set the column of the node used for comparison
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic abstract int compareColumnValues(Object colVal1, Object colVal2)
colVal1 - colVal2 - public int compare(Object o1, Object o2)
compare in interface Comparatorpublic void setColumn(int column)
column - public void setAscending(boolean ascending)
ascending - if true then sort in ascending orderpublic void setAsksAllowsChildren(boolean asksAllowsChildren)
asksAllowsChildren - if true then the determination of whether or not
a node is a leaf is made is based on whether it allows children.Copyright © 2003, 2023, Oracle and/or its affiliates.