ca.odell.glazedlists.gui
Interface TableFormat<E>

All Known Subinterfaces:
AdvancedTableFormat<E>, CheckableTableFormat<E>, KTableFormat, WritableTableFormat<E>
All Known Implementing Classes:
AbstractKTableFormat, TableFormatKTableFormat

public interface TableFormat<E>

Specifies how a set of records are rendered in a table.

Author:
Jesse Wilson
See Also:
GlazedLists.tableFormat(Class,String[],String[])

Method Summary
 int getColumnCount()
          The number of columns to display.
 String getColumnName(int column)
          Gets the title of the specified column.
 Object getColumnValue(E baseObject, int column)
          Gets the value of the specified field for the specified object.
 

Method Detail

getColumnCount

int getColumnCount()
The number of columns to display.


getColumnName

String getColumnName(int column)
Gets the title of the specified column.


getColumnValue

Object getColumnValue(E baseObject,
                      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.



Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by James Lemieux at 2009-01-25 18:40