Interface SortedTableModel

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean ASCENDING_ORDER
      Sort order in ascending order.
      static boolean DESCENDING_ORDER
      Sort order in descending order.
    • Field Detail

      • ASCENDING_ORDER

        static final boolean ASCENDING_ORDER
        Sort order in ascending order.
        See Also:
        Constant Field Values
      • DESCENDING_ORDER

        static final boolean DESCENDING_ORDER
        Sort order in descending order.
        See Also:
        Constant Field Values
    • Method Detail

      • isSortable

        boolean isSortable​(int columnIndex)
        Returns true if the specified columnIndex is sortable.
        Parameters:
        columnIndex - the column index
        Returns:
        true if the specified columnIndex is sortable
      • getPrimarySortColumnIndex

        int getPrimarySortColumnIndex()
        Returns the column index that is the primary sorted column
        Returns:
        the index
      • setTableSortState

        void setTableSortState​(TableSortState state)
        Sets the sort state for this table model
        Parameters:
        state - the sort state
      • getTableSortState

        TableSortState getTableSortState()
        Gets the sort state of this sorted model
        Returns:
        the current sort state
      • addSortListener

        void addSortListener​(SortListener l)
        Adds a listener to be notified when the sort state of this model changes.
        Note: the listener may be stored in a weak collection, which means you have to maintain a handle to the listener so that it does not get garbage collected.
        Parameters:
        l - the listener