com.sas.servlet.tbeans.tableview
Interface TableCellRenderer

All Superinterfaces:
TableCell
All Known Implementing Classes:
BaseFieldRenderer, ColumnAsRowCellRenderer, ConditionTableCellRenderer, DefaultOLAPTableDataCellRenderer, DefaultOLAPTableLabelCellRenderer, DefaultRowSelectionRenderer, DefaultTableCellRenderer, DefaultTableCellRenderer, DefaultTableCellRenderer, DefaultTableHeaderRenderer, DefaultTableHeaderRenderer, DefaultTableHeaderRenderer, DefaultTableRowHeaderRenderer, DefaultTableRowHeaderRenderer, DefaultTableRowHeaderRenderer, InformationServicesDateCellRenderer, NoColumnTableHeaderRenderer, OLAPColorMapTableCellRenderer

public interface TableCellRenderer
extends TableCell

This interface defines the methods required by any object that would like to be a renderer for cells in a TableView. It generates the entire contents of the table's cell within the appropriate markup language.

For example, in HTML the table cell renderer would generate <TD>cellvalue</TD>

The write methods should not be called until the cellContentsRenderer's setCellRendererContentsValue method has been successful called.


Method Summary
 java.util.Locale getLocale()
          Gets the locale.
 TableCellContentsRenderer getTableCellContentsRenderer()
          Gets the cell contents renderer used to display the cell's contents.
 void setLocale(java.util.Locale loc)
          Sets the locale.
 void setTableCellContentsRenderer(TableCellContentsRenderer contentsRenderer)
          Sets the cell contents renderer used to display the cell's contents.
 
Methods inherited from interface com.sas.servlet.tbeans.tableview.TableCell
isHeader, setHeader, write, writeBeginCell, writeEndCell
 

Method Detail

setTableCellContentsRenderer

void setTableCellContentsRenderer(TableCellContentsRenderer contentsRenderer)
Sets the cell contents renderer used to display the cell's contents.

Parameters:
contentsRenderer - the renderer used to display the cell's contents.

getTableCellContentsRenderer

TableCellContentsRenderer getTableCellContentsRenderer()
Gets the cell contents renderer used to display the cell's contents.

Returns:
the renderer used to display the cell's contents.

setLocale

void setLocale(java.util.Locale loc)
Sets the locale.

Parameters:
loc - an instance of java.util.Locale

getLocale

java.util.Locale getLocale()
Gets the locale.

Returns:
an instance of java.util.Locale



Copyright © 2009 SAS Institute Inc. All Rights Reserved.