Package docking.widgets.table.sort
Class ColumnRenderedValueBackupRowComparator<T>
- java.lang.Object
-
- docking.widgets.table.sort.ColumnRenderedValueBackupRowComparator<T>
-
- Type Parameters:
T
- the row type
- All Implemented Interfaces:
java.util.Comparator<T>
- Direct Known Subclasses:
ThreadedBackupRowComparator
public class ColumnRenderedValueBackupRowComparator<T> extends java.lang.Object implements java.util.Comparator<T>
A special version of the backup comparator that uses the column's rendered value for the backup sort, rather the justtoString
, which is what the default parent table model will do.
-
-
Field Summary
Fields Modifier and Type Field Description protected DynamicColumnTableModel<T>
model
protected int
sortColumn
-
Constructor Summary
Constructors Constructor Description ColumnRenderedValueBackupRowComparator(DynamicColumnTableModel<T> model, int sortColumn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T t1, T t2)
protected java.lang.Object
getColumnValue(T t)
-
-
-
Field Detail
-
sortColumn
protected int sortColumn
-
model
protected DynamicColumnTableModel<T> model
-
-
Constructor Detail
-
ColumnRenderedValueBackupRowComparator
public ColumnRenderedValueBackupRowComparator(DynamicColumnTableModel<T> model, int sortColumn)
-
-