| protected abstract static class javax.swing DefaultRowSorter.ModelWrapper<M, I>
|
Java SE 6 |
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.
| M | the type of the underlying model |
| I | the identifier supplied to the filter |
| since | 1.6 |
| See also | javax.swing.RowFilter, javax.swing.RowFilter.Entry |
| Constructors | |
|---|---|
| protected | DefaultRowSorter.ModelWrapper() Creates a new ModelWrapper.
|
| Properties | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| abstract public int | getColumnCount() Details
Returns the number of columns in the model.
| ||||||||
| abstract public Object | getIdentifier(int row) Details
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.
| ||||||||
| abstract public Object | getModel() Details
Returns the underlying model that this Model is
wrapping.
| ||||||||
| abstract public int | getRowCount() Details
Returns the number of rows in the model.
| ||||||||
| public String | getStringValueAt(int row, int column) Details
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.
| ||||||||
| abstract public Object | getValueAt(int row, int column) Details
Returns the value at the specified index.
| ||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|