com.sas.servlet.tbeans.tableview
Interface TableCell

All Known Subinterfaces:
TableCellEditor, TableCellRenderer
All Known Implementing Classes:
BaseFieldRenderer, BaseTableCell, ColumnAsRowCellRenderer, ConditionTableCellRenderer, DefaultOLAPTableDataCellRenderer, DefaultOLAPTableLabelCellRenderer, DefaultRowSelectionRenderer, DefaultTableCellEditor, DefaultTableCellRenderer, DefaultTableCellRenderer, DefaultTableCellRenderer, DefaultTableHeaderRenderer, DefaultTableHeaderRenderer, DefaultTableHeaderRenderer, DefaultTableRowHeaderRenderer, DefaultTableRowHeaderRenderer, DefaultTableRowHeaderRenderer, InformationServicesDateCellRenderer, NoColumnTableHeaderRenderer, OLAPColorMapTableCellRenderer

public interface TableCell

This interface defines the methods required for a TableView cell. It generates the entire contents of the table's cell within the appropriate markup language.


Method Summary
 boolean isHeader()
          Return true if the cell is a header cell.
 void setHeader(boolean headerCell)
          Set whether the cell is a header cell.
 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.
 

Method Detail

write

void write(java.io.PrintWriter out,
           AbstractBaseTableView tableview,
           java.lang.Object value,
           java.lang.String name,
           ActionList actions)
           throws java.io.IOException
Write the entire table cell in the appropriate markup language. This method calls the writeBeginCell and writeEndCell methods.

Parameters:
out - the output stream
tableview - the instance of the tableview being written.
value - the value to display as the cell's contents
name - the name to use for the contents component
actions - an actionlist of all the valid actions for this cell
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

writeBeginCell

void writeBeginCell(java.io.PrintWriter out)
                    throws java.io.IOException
Writes the begin tag for the table cell in the appropriate markup language.

Parameters:
out - the output stream
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

writeEndCell

void writeEndCell(java.io.PrintWriter out)
                  throws java.io.IOException
Writes the end tag for the table cell in the appropriate markup language.

Parameters:
out - the output stream
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

isHeader

boolean isHeader()
Return true if the cell is a header cell.

Returns:
true if the cell is a header cell

setHeader

void setHeader(boolean headerCell)
Set whether the cell is a header cell.

Parameters:
headerCell - true if the cell is a header cell



Copyright © 2009 SAS Institute Inc. All Rights Reserved.