Interface SortableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
DBTableModel, InputOverlayTableModel, IrisTreeTableModel, SortedTableModel

public interface SortableModel
extends TableModel
This interface defines a TableModel that is sortable.
  • Method Details

    • headerClicked

      void headerClicked​(MouseEvent e)
      Called when sorting should be changed based on a header click.
      Parameters:
      e - the driving MouseEvent
    • getHeaderRendererIcon

      @Nullable Icon getHeaderRendererIcon​(int modelColumn, int size)
      Get the sort icon for the specified column and size. May return null, for no icon.
      Parameters:
      modelColumn - the column
      size - the icon size
      Returns:
      an icon to render for sorting.
    • cancelSorting

      void cancelSorting()
      Clear sorting on all columns.
    • setSortingStatus

      void setSortingStatus​(int column, int status, boolean isAbsolute, boolean clearSorting)
      Set the sorting status of a single column. Adds to existing sort definition.
    • getSortingDirective

      @NotNull SortableModel.SortingDirective getSortingDirective​(int column)
      Get the sorting status of a single column.
    • isSorting

      boolean isSorting()
      determine whether there are any sorting directives - similar to empty()
    • getSortableColumns

      @NotNull Set<String> getSortableColumns()
      Get the set of sortable columns.
      Returns:
      the set of sortable columns