nextapp.echo.table
Class DefaultTableCellRenderer

java.lang.Object
  extended by nextapp.echo.table.DefaultTableCellRenderer
All Implemented Interfaces:
java.io.Serializable, TableCellRenderer
Direct Known Subclasses:
ComponentTableCellRenderer

public class DefaultTableCellRenderer
extends java.lang.Object
implements java.io.Serializable, TableCellRenderer

The default TableCellRenderer implementation.

See Also:
Serialized Form

Constructor Summary
DefaultTableCellRenderer()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableCellRenderer

public DefaultTableCellRenderer()
Method Detail

getTableCellRendererComponent

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

Specified by:
getTableCellRendererComponent in interface TableCellRenderer
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.
See Also:
TableCellRenderer.getTableCellRendererComponent(Table, Object, int, int)