com.levigo.util.base.glazedlists.gui
Interface TableFormat<E>

All 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:
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.



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.