APIdia Launch Partner
Top Description Constructors Methods
javax.swing.table

public abstract Class TableStringConverter

extends Object
Class Inheritance

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

AccessConstructor and Description
protected
TableStringConverter()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
public abstract String

Returns:

the string representation. This should never return null.
toString
(TableModel
the TableModel to fetch the value from
model
,
int
the row the string is being requested for
row
,
int
the column the string is being requested for
column
)

Returns the string representation of the value at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TableStringConverterback to summary
protected TableStringConverter()

Constructor for subclasses to call.

Method Detail

toStringback to summary
public abstract String toString(TableModel model, int row, int column)

Returns the string representation of the value at the specified location.

Parameters
model:TableModel

the TableModel to fetch the value from

row:int

the row the string is being requested for

column:int

the column the string is being requested for

Returns:String

the string representation. This should never return null.

Exceptions
NullPointerException:
if model is null
IndexOutOfBoundsException:
if the arguments are outside the bounds of the model