|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.tableview.wml.DefaultTableCellRenderer
public class DefaultTableCellRenderer
The DefaultTableCellRenderer is the default class for rendering a cell for a TableView. The table cell renderer creates the WML tags that represent a table cell and the cell's contents(or body).
TableView
Constructor Summary | |
---|---|
DefaultTableCellRenderer()
Constructs a new DefaultTableCellRenderer |
Method Summary | |
---|---|
java.util.Locale |
getLocale()
Gets the locale. |
TableCellContentsRenderer |
getTableCellContentsRenderer()
Gets the cell contents renderer used to display the cell's contents. |
boolean |
isHeader()
Return true if the cell is a header cell. |
void |
setHeader(boolean headerCell)
Set whether the cell is a header cell. |
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. |
void |
write(java.io.PrintWriter out,
AbstractBaseTableView tableview,
java.lang.Object value,
java.lang.String name,
ActionList actions)
Write the entire table cell in the appropriate markup language. |
void |
writeBeginCell(java.io.PrintWriter out)
Writes the begin tag for the table cell in the appropriate markup language. |
void |
writeEndCell(java.io.PrintWriter out)
Writes the end tag for the table cell in the appropriate markup language. |
Constructor Detail |
---|
public DefaultTableCellRenderer()
Method Detail |
---|
public void setTableCellContentsRenderer(TableCellContentsRenderer contentsRenderer)
setTableCellContentsRenderer
in interface TableCellRenderer
contentsRenderer
- the renderer used to display the cell's contents.public TableCellContentsRenderer getTableCellContentsRenderer()
getTableCellContentsRenderer
in interface TableCellRenderer
public void write(java.io.PrintWriter out, AbstractBaseTableView tableview, java.lang.Object value, java.lang.String name, ActionList actions) throws java.io.IOException
write
in interface TableCell
out
- the output streamtableview
- the instance of the tableview being written.value
- the value to display as the cell's contentsname
- the name to use for the contents componentactions
- an actionlist of all the valid actions for this cell
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeBeginCell(java.io.PrintWriter out) throws java.io.IOException
writeBeginCell
in interface TableCell
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeEndCell(java.io.PrintWriter out) throws java.io.IOException
writeEndCell
in interface TableCell
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic boolean isHeader()
isHeader
in interface TableCell
public void setHeader(boolean headerCell)
setHeader
in interface TableCell
headerCell
- true if the cell is a header cellpublic void setLocale(java.util.Locale loc)
setLocale
in interface TableCellRenderer
loc
- an instance of java.util.Localepublic java.util.Locale getLocale()
getLocale
in interface TableCellRenderer
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |