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:
java.util.Comparator<java.lang.Object>
- Direct Known Subclasses:
ThreadedBackupRowComparator
public class ColumnRenderedValueBackupComparator<T> extends java.lang.Object implements java.util.Comparator<java.lang.Object>
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 ColumnRenderedValueBackupComparator(DynamicColumnTableModel<T> model, int sortColumn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.Object c1, java.lang.Object c2)
protected java.lang.Object
getColumnValue(T t)
-
-
-
Field Detail
-
sortColumn
protected int sortColumn
-
model
protected DynamicColumnTableModel<T> model
-
-
Constructor Detail
-
ColumnRenderedValueBackupComparator
public ColumnRenderedValueBackupComparator(DynamicColumnTableModel<T> model, int sortColumn)
-
-