|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.tableview.hdml.DefaultCellContentsRenderer
public class DefaultCellContentsRenderer
The DefaultCellContentsRenderer is a TransformationBean that generates the contents of the table's cells. This is the default renderer used to generate the contents of a cell for all cells in the TableView.
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
Constructor Summary | |
---|---|
DefaultCellContentsRenderer()
Default constructor |
Method Summary | |
---|---|
ActionList |
getActions()
No implementation for this method. |
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. |
java.lang.String |
getText()
Gets the text. |
void |
setActions(ActionList actions)
No implementation for this method. |
void |
setLocale(java.util.Locale loc)
Set the locale |
void |
setTableView(AbstractBaseTableView viewer)
Sets the instance of the AbstractBaseTableView containing this cell. |
void |
setText(java.lang.String value)
Sets the text. |
void |
write(java.io.PrintWriter out)
Writes the contents of the table's cell. |
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 |
---|
public DefaultCellContentsRenderer()
Method Detail |
---|
public TransformationInterface getCellContentsRendererComponent(AbstractBaseTableView viewer, java.lang.Object value, ActionList actions)
getCellContentsRendererComponent
in interface TableCellContentsRenderer
viewer
- the instance of the tableview being written.value
- the value to display as the cell's contentsactions
- an actionlist of all the valid actions for this cell
public void write(java.io.PrintWriter out) throws java.io.IOException
request
and response
back
to null.
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseTransformation
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void setText(java.lang.String value)
text
- The textpublic java.lang.String getText()
public void setActions(ActionList actions)
setActions
in interface TableCellContentsRenderer
actions
- an actionlist of all the valid actions for this cellpublic ActionList getActions()
getActions
in interface TableCellContentsRenderer
public void setTableView(AbstractBaseTableView viewer)
setTableView
in interface TableCellContentsRenderer
tableview
- an instance of AbstractBaseTableView containing this cellpublic AbstractBaseTableView getTableView()
getTableView
in interface TableCellContentsRenderer
public void setLocale(java.util.Locale loc)
setLocale
in interface TransformationInterface
setLocale
in class BaseTransformation
locale
-
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |