nextapp.echo.table
Class TableHeader.DefaultHeaderRenderer

java.lang.Object
  extended by nextapp.echo.table.TableHeader.DefaultHeaderRenderer
All Implemented Interfaces:
java.io.Serializable, TableCellRenderer
Enclosing class:
TableHeader

public static class TableHeader.DefaultHeaderRenderer
extends java.lang.Object
implements java.io.Serializable, TableCellRenderer

A default renderer for table header cells.

See Also:
Serialized Form

Constructor Summary
TableHeader.DefaultHeaderRenderer()
           
 
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

TableHeader.DefaultHeaderRenderer

public TableHeader.DefaultHeaderRenderer()
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(nextapp.echo.Table, java.lang.Object, int, int)