API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. RowSorter View Source
Author(s)
Since
1.6
Version
1.7 06/23/06
Serial
Hierarchy
 Object
      RowSorter
Implements
Subclasses
Description
publicabstract abstract class RowSorter
  RowSorter provides the basis for sorting and filtering.
See also:    TableRowSorter
Constructors
public RowSorter ()
Creates a RowSorter.
Methods
Hide/Show inherited methods
public void addRowSorterListener (RowSorterListener l)
  Adds a RowSorterListener to receive notification about this RowSorter.
publicabstract void allRowsChanged ()
  Invoked when the contents of the underlying model have completely changed.
publicabstract int convertRowIndexToModel (int index)
  Returns the location of index in terms of the underlying model.
publicabstract int convertRowIndexToView (int index)
  Returns the location of index in terms of the view.
protected void fireRowSorterChanged (int[] lastRowIndexToModel)
  Notifies listener that the mapping has changed.
pack-private void fireRowSorterChanged (RowSorterEvent event)
protected void fireSortOrderChanged ()
Notifies listener that the sort order has changed.
publicabstract M getModel ()
  Returns the underlying model.
publicabstract int getModelRowCount ()
  Returns the number of rows in the underlying model.
publicabstract List<SortKey> getSortKeys ()
  Returns the current sort keys.
publicabstract int getViewRowCount ()
  Returns the number of rows in the view.
publicabstract void modelStructureChanged ()
  Invoked when the underlying model structure has completely changed.
public void removeRowSorterListener (RowSorterListener l)
  Removes a RowSorterListener.
publicabstract void rowsDeleted (int firstRow, int endRow)
  Invoked when rows have been deleted from the underlying model in the specified range (inclusive).
publicabstract void rowsInserted (int firstRow, int endRow)
  Invoked when rows have been inserted into the underlying model in the specified range (inclusive).
publicabstract void rowsUpdated (int firstRow, int endRow)
  Invoked when rows have been changed in the underlying model between the specified range (inclusive).
publicabstract void rowsUpdated (int firstRow, int endRow, int column)
  Invoked when the column in the rows have been updated in the underlying model between the specified range.
publicabstract void setSortKeys (List<SortKey> keys)
  Sets the current sort keys.
publicabstract void toggleSortOrder (int column)
  Reverses the sort order of the specified column.
Fields
Hide/Show inherited fields
Nested Classes
  RowSorter.SortKey
SortKey describes the sort order for a particular column.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar