java.lang.Object
javax.swing.table.TableStringConverter
TableStringConverter is used to convert objects from the model into
strings. This is useful in filtering and searching when the model returns
objects that do not have meaningful
toString implementations.- Since:
- 1.6
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for subclasses to call. -
Method Summary
Modifier and TypeMethodDescriptionabstract StringtoString(TableModel model, int row, int column) Returns the string representation of the value at the specified location.
-
Constructor Details
-
TableStringConverter
protected TableStringConverter()Constructor for subclasses to call.
-
-
Method Details
-
toString
Returns the string representation of the value at the specified location.- Parameters:
model- theTableModelto fetch the value fromrow- the row the string is being requested forcolumn- the column the string is being requested for- Returns:
- the string representation. This should never return null.
- Throws:
NullPointerException- ifmodelis nullIndexOutOfBoundsException- if the arguments are outside the bounds of the model
-