1 /* 2 * @(#)TableStringConverter.java 1.2 05/11/17 3 * 4 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 package javax.swing.table; 8 9 /** 10 * TableStringConverter is used to convert objects from the model into 11 * strings. This is useful in filtering and searching when the model returns 12 * objects that do not have meaningful <code>toString</code> implementations. 13 * 14 * @version 1.2 11/17/05 15 * @since 1.6 16 */ 17 public abstract class TableStringConverter { 18 /** 19 * Returns the string representation of the value at the specified 20 * location. 21 * 22 * @param model the <code>TableModel</code> to fetch the value from 23 * @param row the row the string is being requested for 24 * @param column the column the string is being requested for 25 * @return the string representation. This should never return null. 26 * @throws NullPointerException if <code>model</code> is null 27 * @throws IndexOutOfBoundsException if the arguments are outside the 28 * bounds of the model 29 */ 30 public abstract String toString(TableModel model, int row, int column); 31 } 32