Liking cljdoc? Tell your friends :D

javax.swing.event.RowSorterEvent

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.

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.
raw docstring

->row-sorter-eventclj

(->row-sorter-event source)
(->row-sorter-event source type previous-row-index-to-model)

Constructor.

Creates a RowSorterEvent.

source - the source of the change - javax.swing.RowSorter type - the type of event - javax.swing.event.RowSorterEvent$Type previous-row-index-to-model - the mapping from model indices to view indices prior to the sort, may be null - int[]

throws: java.lang.IllegalArgumentException - if source or type is null

Constructor.

Creates a RowSorterEvent.

source - the source of the change - `javax.swing.RowSorter`
type - the type of event - `javax.swing.event.RowSorterEvent$Type`
previous-row-index-to-model - the mapping from model indices to view indices prior to the sort, may be null - `int[]`

throws: java.lang.IllegalArgumentException - if source or type is null
raw docstring

convert-previous-row-index-to-modelclj

(convert-previous-row-index-to-model this index)

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.

index - the index in terms of the view - int

returns: the index in terms of the model prior to the sort, or -1 if the location is not valid or the mapping was not provided. - int

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.

index - the index in terms of the view - `int`

returns: the index in terms of the model prior to the sort, or -1 if
         the location is not valid or the mapping was not provided. - `int`
raw docstring

get-previous-row-countclj

(get-previous-row-count this)

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.

returns: the number of rows in terms of the view prior to the sort - int

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.

returns: the number of rows in terms of the view prior to the sort - `int`
raw docstring

get-sourceclj

(get-source this)

Returns the source of the event as a RowSorter.

returns: the source of the event as a RowSorter - javax.swing.RowSorter

Returns the source of the event as a RowSorter.

returns: the source of the event as a RowSorter - `javax.swing.RowSorter`
raw docstring

get-typeclj

(get-type this)

Returns the type of event.

returns: the type of event - javax.swing.event.RowSorterEvent$Type

Returns the type of event.

returns: the type of event - `javax.swing.event.RowSorterEvent$Type`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close