| |
|
| java.lang.Object java.util.EventObject javax.swing.event.RowSorterEvent
RowSorterEvent | public class RowSorterEvent extends java.util.EventObject (Code) | | RowSorterEvent provides notification of changes to
a RowSorter . Two types of notification are possible:
Type.SORT_ORDER_CHANGED : indicates the sort order has
changed. This is typically followed by a notification of:
Type.SORTED : indicates the contents of the model have
been transformed in some way. For example, the contents may have
been sorted or filtered.
version: 1.9 05/05/07 See Also: javax.swing.RowSorter since: 1.6 |
Inner Class :public enum Type | |
RowSorterEvent | public RowSorterEvent(RowSorter source)(Code) | | Creates a RowSorterEvent of type
SORT_ORDER_CHANGED .
Parameters: source - the source of the change throws: IllegalArgumentException - if source isnull |
RowSorterEvent | public RowSorterEvent(RowSorter source, Type type, int[] previousRowIndexToModel)(Code) | | Creates a RowSorterEvent .
Parameters: source - the source of the change Parameters: type - the type of event Parameters: previousRowIndexToModel - the mapping from model indices to view indices prior to the sort, may be null throws: IllegalArgumentException - if source or type isnull |
convertPreviousRowIndexToModel | public int convertPreviousRowIndexToModel(int index)(Code) | | Returns the location of index in terms of the
model prior to the sort. This method is only useful for events
of type SORTED . This method will return -1 if the
index is not valid, or the locations prior to the sort have not
been provided.
Parameters: index - the index in terms of the view the index in terms of the model prior to the sort, or -1 ifthe location is not valid or the mapping was not provided. |
getPreviousRowCount | public int getPreviousRowCount()(Code) | | Returns the number of rows before the sort. This method is only
useful for events of type SORTED and if the
last locations have not been provided will return 0.
the number of rows in terms of the view prior to the sort |
getSource | public RowSorter getSource()(Code) | | Returns the source of the event as a RowSorter .
the source of the event as a RowSorter |
getType | public Type getType()(Code) | | Returns the type of event.
the type of event |
|
|
|