Package ucar.ui.table

Class RowSorterAbstract

  • All Implemented Interfaces:
    RowSorter

    public abstract class RowSorterAbstract
    extends Object
    implements RowSorter
    Superclass for implementations of RowSorter, used with JTreeTableSorted to create application-controlled sorting.
    See Also:
    TreeTableModelSorted, RowSorter
    • Constructor Detail

      • RowSorterAbstract

        protected RowSorterAbstract​(String[] colNames)
    • Method Detail

      • restoreState

        public void restoreState​(PreferencesExt store)
        Restore the state from the last saved in the PreferencesExt.
        Parameters:
        store - ok if null or empty
      • saveState

        public void saveState()
        Save state to the PreferencesExt.
      • setRows

        protected void setRows​(ArrayList list)
      • sort

        public ArrayList sort​(int sortCol,
                              boolean reverse,
                              ArrayList docs)
        Description copied from interface: RowSorter
        May make a copy of the Array, or return the original, but must not copy the rows themselves.
        Specified by:
        sort in interface RowSorter