Class HeaderDetailTableRowSorter.HeaderDetailTableRowComparator<H>
- java.lang.Object
-
- io.github.jonestimd.swing.table.sort.TableRowComparator<H,HeaderDetailTableRowSorter.HeaderDetailViewToModel<H>>
-
- io.github.jonestimd.swing.table.sort.HeaderDetailTableRowSorter.HeaderDetailTableRowComparator<H>
-
- Type Parameters:
H
- the class of the header beans in the table
- All Implemented Interfaces:
java.util.Comparator<HeaderDetailTableRowSorter.HeaderDetailViewToModel<H>>
- Enclosing class:
- HeaderDetailTableRowSorter<H,M extends BufferedHeaderDetailTableModel<H>>
protected static class HeaderDetailTableRowSorter.HeaderDetailTableRowComparator<H> extends TableRowComparator<H,HeaderDetailTableRowSorter.HeaderDetailViewToModel<H>>
The comparator used to sort rows of a header/detail table.
-
-
Constructor Summary
Constructors Constructor Description HeaderDetailTableRowComparator(DecoratedTable<H,? extends BeanTableModel<H>> table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Comparator<HeaderDetailTableRowSorter.HeaderDetailViewToModel<H>>
columnComparator(javax.swing.RowSorter.SortKey sortKey)
-
Methods inherited from class io.github.jonestimd.swing.table.sort.TableRowComparator
compare, getSortKeys, isEmpty, isSorted, reset, setSortKeys, toggleSortOrder
-
-
-
-
Constructor Detail
-
HeaderDetailTableRowComparator
public HeaderDetailTableRowComparator(DecoratedTable<H,? extends BeanTableModel<H>> table)
-
-
Method Detail
-
columnComparator
protected java.util.Comparator<HeaderDetailTableRowSorter.HeaderDetailViewToModel<H>> columnComparator(javax.swing.RowSorter.SortKey sortKey)
- Overrides:
columnComparator
in classTableRowComparator<H,HeaderDetailTableRowSorter.HeaderDetailViewToModel<H>>
-
-