|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.swing
|
Constructor Summary | |
---|---|
protected |
DefaultRowSorter.ModelWrapper()
Creates a new ModelWrapper . |
Method Summary | |
---|---|
abstract int |
getColumnCount()
Returns the number of columns in the model. |
abstract I |
getIdentifier(int row)
Returns the identifier for the specified row. |
abstract M |
getModel()
Returns the underlying model that this Model is
wrapping. |
abstract int |
getRowCount()
Returns the number of rows in the model. |
String |
getStringValueAt(int row,
int column)
Returns the value as a String at the specified
index. |
abstract Object |
getValueAt(int row,
int column)
Returns the value at the specified index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultRowSorter.ModelWrapper()
ModelWrapper
.
Method Detail |
---|
public abstract M getModel()
Model
is
wrapping.
public abstract int getColumnCount()
public abstract int getRowCount()
public abstract Object getValueAt(int row, int column)
row
- the row indexcolumn
- the column index
IndexOutOfBoundsException
- if the indices are outside
the range of the modelpublic String getStringValueAt(int row, int column)
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 indexcolumn
- the column index
String
IndexOutOfBoundsException
- if the indices are outside
the range of the modelpublic abstract I getIdentifier(int row)
RowFilter.Entry
that is passed to the
RowFilter
.
row
- the row to return the identifier for, in terms of
the underlying model
RowFilter.Entry.getIdentifier()