< prev index next >
src/java.desktop/share/classes/javax/swing/table/TableStringConverter.java
Print this page
*** 25,48 ****
package javax.swing.table;
/**
* 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 <code>toString</code> implementations.
*
* @since 1.6
*/
public abstract class TableStringConverter {
/**
* Returns the string representation of the value at the specified
* location.
*
! * @param model the <code>TableModel</code> to fetch the value from
* @param row the row the string is being requested for
* @param column the column the string is being requested for
* @return the string representation. This should never return null.
! * @throws NullPointerException if <code>model</code> is null
* @throws IndexOutOfBoundsException if the arguments are outside the
* bounds of the model
*/
public abstract String toString(TableModel model, int row, int column);
}
--- 25,48 ----
package javax.swing.table;
/**
* 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 {@code toString} implementations.
*
* @since 1.6
*/
public abstract class TableStringConverter {
/**
* Returns the string representation of the value at the specified
* location.
*
! * @param model the {@code TableModel} to fetch the value from
* @param row the row the string is being requested for
* @param column the column the string is being requested for
* @return the string representation. This should never return null.
! * @throws NullPointerException if {@code model} is null
* @throws IndexOutOfBoundsException if the arguments are outside the
* bounds of the model
*/
public abstract String toString(TableModel model, int row, int column);
}
< prev index next >