nextapp.echo.table
Interface TableCellRenderer

All Known Implementing Classes:
ComponentTableCellRenderer, DefaultTableCellRenderer, MySortableTableHeaderRenderer, NonSortableTableHeaderRenderer, SortableTableHeaderRenderer, TableHeader.DefaultHeaderRenderer

public interface TableCellRenderer

Generates a component representation of a table cell.


Method Summary
 Component getTableCellRendererComponent(Table table, java.lang.Object value, int column, int row)
          Returns a component that will be rendered at the given coordinate.
 

Method Detail

getTableCellRendererComponent

Component getTableCellRendererComponent(Table table,
                                        java.lang.Object value,
                                        int column,
                                        int row)
Returns a component that will be rendered at the given coordinate. This method MUST return a UNIQUE component.

Parameters:
table - The table for which the component is to be generated.
value - The value for which to generate a component.
column - The column coordinate of the value in the table.
row - The row coordinate of the value in the table.
Returns:
A component representation of the value. This component must be unique. Returning a single instance of a component across multiple calls to this method will result in undefined behavior.