Class FilterPipeline.SorterBasedSortController

    • Constructor Detail

      • SorterBasedSortController

        protected SorterBasedSortController()
    • Method Detail

      • toggleSortOrder

        public void toggleSortOrder​(int column)
        Description copied from interface: SortController
        Reverses the sort order of the specified column. It is up to implementating classes to provide the exact behavior when invoked.
        Specified by:
        toggleSortOrder in interface SortController
        Parameters:
        column - the model index of the column to toggle
      • toggleSortOrder

        public void toggleSortOrder​(int column,
                                    java.util.Comparator comparator)
        Description copied from interface: SortController
        Reverses the sort order of the specified column. It is up to implementating classes to provide the exact behavior when invoked.
        Specified by:
        toggleSortOrder in interface SortController
        Parameters:
        column - the model index of the column to toggle
        comparator - the comparator to use
      • createDefaultSorter

        protected Sorter createDefaultSorter​(SortKey sortKey)
        creates a Sorter initialized with sortKey
        Parameters:
        sortKey - the properties to use
        Returns:
        Sorter initialized with the specified sortKey
      • createDefaultSorter

        protected Sorter createDefaultSorter()