Class DefaultSelectorColumnModelListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changed()
      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 columnVisibilityChanged()
      Called whenever a column's visibility has changed.
      void columnVisibilityChanged​(java.lang.Integer colIndex)
      Called whenever a column's visibility has changed (and column is not shown as last column).
      void selectionChanged​(java.util.List<? extends java.lang.Object> columnIndexes)
      Called whenever the column selection has changed.
      void sortChanged​(int columnIndex, boolean ascending)
      Called when the sort conditions have changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • columnMoved

        public void columnMoved​(int fromIndex,
                                int toIndex)
        Description copied from interface: ColumnModelListener
        Called when a column has been moved.
        Specified by:
        columnMoved in interface ColumnModelListener
        Parameters:
        fromIndex - previous zero based position index of the column
        toIndex - new zero based position index of the column
      • columnVisibilityChanged

        public void columnVisibilityChanged​(java.lang.Integer colIndex)
        Description copied from interface: ColumnModelListener
        Called whenever a column's visibility has changed (and column is not shown as last column).
        Specified by:
        columnVisibilityChanged in interface ColumnModelListener
      • selectionChanged

        public void selectionChanged​(java.util.List<? extends java.lang.Object> columnIndexes)
        Description copied from interface: ColumnModelListener
        Called whenever the column selection has changed.
        Specified by:
        selectionChanged in interface ColumnModelListener
        Parameters:
        columnIndexes - indexes of the currently selected columns
      • sortChanged

        public void sortChanged​(int columnIndex,
                                boolean ascending)
        Description copied from interface: ColumnModelListener
        Called when the sort conditions have changed.
        Specified by:
        sortChanged in interface ColumnModelListener
        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