com.sas.servlet.tbeans.tableview.wml
Class CellContentsNoRowsRenderer

com.sas.servlet.tbeans.tableview.wml.CellContentsNoRowsRenderer
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, RenderableInterface, TableCellContentsRenderer, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable

public class CellContentsNoRowsRenderer

The CellContentsNoRowsRenderer is a TransformationBean™ that generates the contents of the TableView when there are no rows in the data model.

Note that the toString() method on this class calls the write method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging

See Also:
Serialized Form

Constructor Summary
CellContentsNoRowsRenderer()
          Default constructor
 
Method Summary
 TransformationInterface getCellContentsRendererComponent(AbstractBaseTableView viewer, java.lang.Object value, ActionList actions)
          Returns the tbean used for rendering the contents of the TableView's cell.
 void write(java.io.PrintWriter out)
          Writes the contents of the table's cell.
 
Methods inherited from class com.sas.servlet.tbeans.tableview.wml.DefaultCellContentsRenderer
getActions, getTableView, getText, setActions, setLocale, setTableView, setText
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getName, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCleanUpResourcesOn, setCustomAttributes, setDescription, setId, setInputTransform, setLocaleDependentProperties, setName, setObjectData, setObjectDataProperty, setOutputTransform, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 
Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, isVisible, setCustomAttributes, setDescription, setId, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write
 

Constructor Detail

CellContentsNoRowsRenderer

public CellContentsNoRowsRenderer()
Default constructor

Method Detail

getCellContentsRendererComponent

public 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.

Specified by:
getCellContentsRendererComponent in interface TableCellContentsRenderer
Overrides:
getCellContentsRendererComponent in class DefaultCellContentsRenderer
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

write

public void write(java.io.PrintWriter out)
           throws java.io.IOException
Description copied from class: DefaultCellContentsRenderer
Writes the contents of the table's cell. This method calls the cleanUpResources method at the end to reset the request and response back to null.

Specified by:
write in interface TransformationInterface
Specified by:
write in interface com.sas.util.WriteToPrintWriterInterface
Overrides:
write in class DefaultCellContentsRenderer
Parameters:
out - The output stream
Throws:
java.io.IOException - Thrown if some type of I/O error occurs



Copyright © 2009 SAS Institute Inc. All Rights Reserved.