echopoint.table
Class ComponentTableCellRenderer

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

public class ComponentTableCellRenderer
extends DefaultTableCellRenderer

This TableCellRenderer implementation allows Components to be rendered in table cells well as other Object values, which are rendered via there toString method().

See Also:
Serialized Form

Constructor Summary
ComponentTableCellRenderer()
           
 
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

ComponentTableCellRenderer

public ComponentTableCellRenderer()
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
Overrides:
getTableCellRendererComponent in class DefaultTableCellRenderer
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:
DefaultTableCellRenderer.getTableCellRendererComponent(nextapp.echo.Table, java.lang.Object, int, int)