Package docking.widgets.table.sort
Class ColumnRenderedValueBackupComparator<T>
java.lang.Object
docking.widgets.table.sort.ColumnRenderedValueBackupComparator<T>
- Type Parameters:
T
- the row type
- All Implemented Interfaces:
Comparator<Object>
- Direct Known Subclasses:
ThreadedBackupRowComparator
A special version of the backup comparator that uses the column's rendered value for
the backup sort, rather the just
toString
, which is what the default parent
table model will do.-
Field Summary
-
Constructor Summary
ConstructorDescriptionColumnRenderedValueBackupComparator
(DynamicColumnTableModel<T> model, int sortColumn) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
sortColumn
protected int sortColumn -
model
-
-
Constructor Details
-
ColumnRenderedValueBackupComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-
getColumnValue
-