Interface ColumnModelListener

All Known Implementing Classes:
AdvancedSearchPage.DefaultSelectorColumnModelListener, AdvancedSearchPage.DefaultSelectorColumnModelListener, DefaultColumnModelListener, DefaultSelectorColumnModelListener

public interface ColumnModelListener
A ColumnModelListener handles events fired by the ColumnModel where it is registered.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generally called when the model has changed in a way not covered by the other ColumnModelListener methods.
    void
    columnMoved(int fromIndex, int toIndex)
    Called when a column has been moved.
    void
    Called whenever a column's visibility has changed.
    void
    Called whenever a column's visibility has changed (and column is not shown as last column).
    void
    selectionChanged(List<? extends Object> columnIndexes)
    Called whenever the column selection has changed.
    void
    sortChanged(int columnIndex, boolean ascending)
    Called when the sort conditions have changed.
  • Method Details

    • columnMoved

      void columnMoved(int fromIndex, int toIndex)
      Called when a column has been moved.
      Parameters:
      fromIndex - previous zero based position index of the column
      toIndex - new zero based position index of the column
    • columnVisibilityChanged

      void columnVisibilityChanged()
      Called whenever a column's visibility has changed.
    • columnVisibilityChanged

      void columnVisibilityChanged(Integer colIndex)
      Called whenever a column's visibility has changed (and column is not shown as last column).
    • selectionChanged

      void selectionChanged(List<? extends Object> columnIndexes)
      Called whenever the column selection has changed.
      Parameters:
      columnIndexes - indexes of the currently selected columns
    • sortChanged

      void sortChanged(int columnIndex, boolean ascending)
      Called when the sort conditions have changed.
      Parameters:
      columnIndex - zero based position index of the column by which the values are currently sorted
      ascending - whether the sort order is set to ascending or not
    • changed

      void changed()
      Generally called when the model has changed in a way not covered by the other ColumnModelListener methods.