src/share/classes/javax/swing/event/RowSorterEvent.java
Print this page
*** 69,79 ****
*
* @param source the source of the change
* @throws IllegalArgumentException if <code>source</code> is
* <code>null</code>
*/
! public RowSorterEvent(RowSorter source) {
this(source, Type.SORT_ORDER_CHANGED, null);
}
/**
* Creates a <code>RowSorterEvent</code>.
--- 69,79 ----
*
* @param source the source of the change
* @throws IllegalArgumentException if <code>source</code> is
* <code>null</code>
*/
! public RowSorterEvent(RowSorter<?> source) {
this(source, Type.SORT_ORDER_CHANGED, null);
}
/**
* Creates a <code>RowSorterEvent</code>.
*** 83,93 ****
* @param previousRowIndexToModel the mapping from model indices to
* view indices prior to the sort, may be <code>null</code>
* @throws IllegalArgumentException if source or <code>type</code> is
* <code>null</code>
*/
! public RowSorterEvent(RowSorter source, Type type,
int[] previousRowIndexToModel) {
super(source);
if (type == null) {
throw new IllegalArgumentException("type must be non-null");
}
--- 83,93 ----
* @param previousRowIndexToModel the mapping from model indices to
* view indices prior to the sort, may be <code>null</code>
* @throws IllegalArgumentException if source or <code>type</code> is
* <code>null</code>
*/
! public RowSorterEvent(RowSorter<?> source, Type type,
int[] previousRowIndexToModel) {
super(source);
if (type == null) {
throw new IllegalArgumentException("type must be non-null");
}
*** 98,108 ****
/**
* Returns the source of the event as a <code>RowSorter</code>.
*
* @return the source of the event as a <code>RowSorter</code>
*/
! public RowSorter getSource() {
return (RowSorter)super.getSource();
}
/**
* Returns the type of event.
--- 98,109 ----
/**
* Returns the source of the event as a <code>RowSorter</code>.
*
* @return the source of the event as a <code>RowSorter</code>
*/
! @Override
! public RowSorter<?> getSource() {
return (RowSorter)super.getSource();
}
/**
* Returns the type of event.