Class SectionTableRowSorter.SectionTableRowComparator<BEAN>
- java.lang.Object
-
- io.github.jonestimd.swing.table.sort.TableRowComparator<BEAN,SectionTableRowSorter.ViewRow<BEAN>>
-
- io.github.jonestimd.swing.table.sort.SectionTableRowSorter.SectionTableRowComparator<BEAN>
-
- Type Parameters:
BEAN
- the class of the beans in the table
- All Implemented Interfaces:
java.util.Comparator<SectionTableRowSorter.ViewRow<BEAN>>
- Enclosing class:
- SectionTableRowSorter<BEAN,MODEL extends SectionTableModel<BEAN> & BeanTableModel<BEAN>>
protected static class SectionTableRowSorter.SectionTableRowComparator<BEAN> extends TableRowComparator<BEAN,SectionTableRowSorter.ViewRow<BEAN>>
The comparator used to sort rows of a section table.
-
-
Constructor Summary
Constructors Constructor Description SectionTableRowComparator(DecoratedTable<BEAN,? extends BeanTableModel<BEAN>> table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SectionTableRowSorter.ViewRow<BEAN> row1, SectionTableRowSorter.ViewRow<BEAN> row2)
-
Methods inherited from class io.github.jonestimd.swing.table.sort.TableRowComparator
columnComparator, getSortKeys, isEmpty, isSorted, reset, setSortKeys, toggleSortOrder
-
-
-
-
Constructor Detail
-
SectionTableRowComparator
public SectionTableRowComparator(DecoratedTable<BEAN,? extends BeanTableModel<BEAN>> table)
-
-
Method Detail
-
compare
public int compare(SectionTableRowSorter.ViewRow<BEAN> row1, SectionTableRowSorter.ViewRow<BEAN> row2)
- Specified by:
compare
in interfacejava.util.Comparator<BEAN>
- Overrides:
compare
in classTableRowComparator<BEAN,SectionTableRowSorter.ViewRow<BEAN>>
-
-