ca.odell.glazedlists.gui

Interface TableFormat<E>

Known Subinterfaces:
AdvancedTableFormat<E>, CheckableTableFormat<E>, WritableTableFormat<E>

public interface TableFormat<E>

Specifies how a set of records are rendered in a table.
Author:
Jesse Wilson
See Also:
ca.odell.glazedlists.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 Details

getColumnCount

public int getColumnCount()
The number of columns to display.

getColumnName

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

getColumnValue

public 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 pbuilder at 2009-07-14 22:05