SPT Core API

com.sptci.echo2.table
Class HeaderCellRenderer

java.lang.Object
  extended by com.sptci.echo2.table.HeaderCellRenderer
All Implemented Interfaces:
Serializable, TableCellRenderer
Direct Known Subclasses:
SortableHeaderCellRenderer

public class HeaderCellRenderer
extends Object
implements TableCellRenderer

The default renderer to use for table headers.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: HeaderCellRenderer.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-07
See Also:
HeaderCellRenderer, Serialized Form

Field Summary
static String STYLE_NAME
          The name of the Style used to style this component.
 
Constructor Summary
HeaderCellRenderer()
           
 
Method Summary
 Component getTableCellRendererComponent(Table table, Object value, int column, int row)
          Returns a Button containing the Object.toString() value of the model value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLE_NAME

public static final String STYLE_NAME
The name of the Style used to style this component.

See Also:
Constant Field Values
Constructor Detail

HeaderCellRenderer

public HeaderCellRenderer()
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(Table table,
                                               Object value,
                                               int column,
                                               int row)
Returns a Button containing the Object.toString() value of the model value.

Specified by:
getTableCellRendererComponent in interface TableCellRenderer
Parameters:
table - The table for which the cell renderer is to be returned.
value - The value that is to be displayed in the cell.
column - The column index at which the value is to be displayed.
row - The row index in which the column is to be displayed.
Returns:
The component to use to render the header cell. Returns null if the model value is null.
See Also:
TableCellRenderer.getTableCellRendererComponent(nextapp.echo2.app.Table, java.lang.Object, int, int)

SPT Core API