ca.odell.glazedlists.gui.TableFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glazedlists_java15 Show documentation
Show all versions of glazedlists_java15 Show documentation
Event-driven lists for dynamically filtered and sorted tables
/* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.gui;
/**
* Specifies how a set of records are rendered in a table.
*
* @see ca.odell.glazedlists.GlazedLists#tableFormat(Class,String[],String[])
*
* @author Jesse Wilson
*/
public interface TableFormat {
/**
* The number of columns to display.
*/
public int getColumnCount();
/**
* Gets the title of the specified column.
*/
public String getColumnName(int column);
/**
* Gets the value of the specified field for the specified object. This
* is the value that will be passed to the editor and renderer for the
* column. If you have defined a custom renderer, you may choose to return
* simply the baseObject.
*/
public Object getColumnValue(E baseObject, int column);
}