Liking cljdoc? Tell your friends :D

javax.swing.DefaultRowSorter$ModelWrapper

DefaultRowSorter.ModelWrapper is responsible for providing the data that gets sorted by DefaultRowSorter. You normally do not interact directly with ModelWrapper. Subclasses of DefaultRowSorter provide an implementation of ModelWrapper wrapping another model. For example, TableRowSorter provides a ModelWrapper that wraps a TableModel.

ModelWrapper makes a distinction between values as Objects and Strings. This allows implementations to provide a custom string converter to be used instead of invoking toString on the object.

DefaultRowSorter.ModelWrapper is responsible for providing
the data that gets sorted by DefaultRowSorter.  You
normally do not interact directly with ModelWrapper.
Subclasses of DefaultRowSorter provide an
implementation of ModelWrapper wrapping another model.
For example,
TableRowSorter provides a ModelWrapper that
wraps a TableModel.

ModelWrapper makes a distinction between values as
Objects and Strings.  This allows
implementations to provide a custom string
converter to be used instead of invoking toString on the
object.
raw docstring

get-column-countclj

(get-column-count this)

Returns the number of columns in the model.

returns: the number of columns in the model - int

Returns the number of columns in the model.

returns: the number of columns in the model - `int`
raw docstring

get-identifierclj

(get-identifier this row)

Returns the identifier for the specified row. The return value of this is used as the identifier for the RowFilter.Entry that is passed to the RowFilter.

row - the row to return the identifier for, in terms of the underlying model - int

returns: the identifier - I

Returns the identifier for the specified row.  The return value
 of this is used as the identifier for the
 RowFilter.Entry that is passed to the
 RowFilter.

row - the row to return the identifier for, in terms of the underlying model - `int`

returns: the identifier - `I`
raw docstring

get-modelclj

(get-model this)

Returns the underlying model that this Model is wrapping.

returns: the underlying model - M

Returns the underlying model that this Model is
 wrapping.

returns: the underlying model - `M`
raw docstring

get-row-countclj

(get-row-count this)

Returns the number of rows in the model.

returns: the number of rows in the model - int

Returns the number of rows in the model.

returns: the number of rows in the model - `int`
raw docstring

get-string-value-atclj

(get-string-value-at this row column)

Returns the value as a String at the specified index. This implementation uses toString on the result from getValueAt (making sure to return an empty string for null values). Subclasses that override this method should never return null.

row - the row index - int column - the column index - int

returns: the value at the specified index as a String - java.lang.String

throws: java.lang.IndexOutOfBoundsException - if the indices are outside the range of the model

Returns the value as a String at the specified
 index.  This implementation uses toString on
 the result from getValueAt (making sure
 to return an empty string for null values).  Subclasses that
 override this method should never return null.

row - the row index - `int`
column - the column index - `int`

returns: the value at the specified index as a String - `java.lang.String`

throws: java.lang.IndexOutOfBoundsException - if the indices are outside the range of the model
raw docstring

get-value-atclj

(get-value-at this row column)

Returns the value at the specified index.

row - the row index - int column - the column index - int

returns: the value at the specified index - java.lang.Object

throws: java.lang.IndexOutOfBoundsException - if the indices are outside the range of the model

Returns the value at the specified index.

row - the row index - `int`
column - the column index - `int`

returns: the value at the specified index - `java.lang.Object`

throws: java.lang.IndexOutOfBoundsException - if the indices are outside the range of the model
raw docstring

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

× close