Class RoutesTableSortPreferences
java.lang.Object
slash.navigation.converter.gui.models.RoutesTableSortPreferences
Persists the sort column and direction of the browse routes table across restarts,
using the same
Preferences mechanism AbstractTableColumnModel uses for
its -visible-/-order- keys, with new -sort-column-/-sort-order-
keys.- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the persisted sort keys to restore on startup, or an empty list if none were persisted (or the stored order is unreadable).voidsaveSortKeys(List<? extends RowSorter.SortKey> sortKeys) Persists the primary sort key (column and direction), or clears the persisted sort when there is none or it is unsorted.
-
Constructor Details
-
RoutesTableSortPreferences
public RoutesTableSortPreferences()
-
-
Method Details
-
loadSortKeys
Returns the persisted sort keys to restore on startup, or an empty list if none were persisted (or the stored order is unreadable). -
saveSortKeys
Persists the primary sort key (column and direction), or clears the persisted sort when there is none or it is unsorted.
-