Class RoutesTableSortPreferences

java.lang.Object
slash.navigation.converter.gui.models.RoutesTableSortPreferences

public class RoutesTableSortPreferences extends Object
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 Details

    • RoutesTableSortPreferences

      public RoutesTableSortPreferences()
  • Method Details

    • loadSortKeys

      public List<RowSorter.SortKey> 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

      public void saveSortKeys(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.