com.sas.servlet.tbeans.tableview
Interface TableCellContentsRenderer

All Superinterfaces:
java.io.Serializable, TransformationInterface
All Known Implementing Classes:
CellContentsImageRenderer, CellContentsLabelRenderer, CellContentsNoRowsRenderer, CellContentsNoRowsRenderer, CellContentsNoRowsRenderer, CellContentsRowSelectionRenderer, CellContentsSimpleTemplateRenderer, DefaultCellContentsRenderer, DefaultCellContentsRenderer, DefaultOLAPTableDataCellContentsRenderer, DefaultOLAPTableLabelCellContentsRenderer, ImageAction, TextAction

public interface TableCellContentsRenderer
extends TransformationInterface

This interface defines the methods required by any object that would like to renderer the contents of a cell of a TableView. It generates the contents of the table's cell that will be used within the appropriate markup language begin and end cell tags.


Method Summary
 ActionList getActions()
          Gets the list of valid actions for this cell.
 TransformationInterface getCellContentsRendererComponent(AbstractBaseTableView viewer, java.lang.Object value, ActionList actions)
          Returns the tbean used for rendering the contents of the tableview's cell.
 AbstractBaseTableView getTableView()
          Gets the instance of the AbstractBaseTableView containing this cell.
 void setActions(ActionList actions)
          Sets the list of valid actions for this cell.
 void setTableView(AbstractBaseTableView tableview)
          Sets the instance of the AbstractBaseTableView containing this cell.
 
Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, isVisible, setCustomAttributes, setDescription, setId, setLocale, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write, write
 

Method Detail

getCellContentsRendererComponent

TransformationInterface getCellContentsRendererComponent(AbstractBaseTableView viewer,
                                                         java.lang.Object value,
                                                         ActionList actions)
Returns the tbean used for rendering the contents of the tableview's cell. This method is used to configure the contents renderer appropriately before writing out the component.

Parameters:
viewer - the instance of the tableview being written.
value - the value to display as the cell's contents
actions - an actionlist of all the valid actions for this cell
Returns:
the contents renderer for this cell

setActions

void setActions(ActionList actions)
Sets the list of valid actions for this cell.

Parameters:
actions - an actionlist of all the valid actions for this cell

getActions

ActionList getActions()
Gets the list of valid actions for this cell.

Returns:
the actionlist of all the valid actions for this cell, or null if not set

setTableView

void setTableView(AbstractBaseTableView tableview)
Sets the instance of the AbstractBaseTableView containing this cell.

Parameters:
tableview - an instance of AbstractBaseTableView containing this cell

getTableView

AbstractBaseTableView getTableView()
Gets the instance of the AbstractBaseTableView containing this cell.

Returns:
the tableview containing this cell



Copyright © 2009 SAS Institute Inc. All Rights Reserved.