com.sas.servlet.tbeans.tableview.hdml
Class DefaultTableRowRenderer

com.sas.servlet.tbeans.tableview.hdml.DefaultTableRowRenderer
All Implemented Interfaces:
TableRowRenderer

public class DefaultTableRowRenderer
implements TableRowRenderer

The DefaultTableRowRenderer is a class for rendering the begin HDML row tag for the TableView. The table row renderer creates the <line> tag for beginning row.


Constructor Summary
DefaultTableRowRenderer()
          Constructs a new DefaultTableRowRenderer
 
Method Summary
 java.util.Locale getLocale()
          Gets the locale.
 void setLocale(java.util.Locale loc)
          Sets the locale.
 void writeBeginRow(AbstractBaseTableView tableview, java.io.PrintWriter out)
          Generates the hdml begin row tag for a hdml TableView.
 void writeEndRow(AbstractBaseTableView tableview, java.io.PrintWriter out)
          There is no end row tag for hdml tables.
 

Constructor Detail

DefaultTableRowRenderer

public DefaultTableRowRenderer()
Constructs a new DefaultTableRowRenderer

Method Detail

writeBeginRow

public void writeBeginRow(AbstractBaseTableView tableview,
                          java.io.PrintWriter out)
                   throws java.io.IOException
Generates the hdml begin row tag for a hdml TableView.

Specified by:
writeBeginRow in interface TableRowRenderer
Parameters:
tableview - instance of the TableView
out - The output stream
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

writeEndRow

public void writeEndRow(AbstractBaseTableView tableview,
                        java.io.PrintWriter out)
                 throws java.io.IOException
There is no end row tag for hdml tables. The method renders nothing.

Specified by:
writeEndRow in interface TableRowRenderer
Parameters:
tableview - instance of the TableView
out - The output stream
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

setLocale

public void setLocale(java.util.Locale loc)
Sets the locale.

Specified by:
setLocale in interface TableRowRenderer
Parameters:
loc - an instance of java.util.Locale

getLocale

public java.util.Locale getLocale()
Gets the locale.

Specified by:
getLocale in interface TableRowRenderer
Returns:
an instance of java.util.Locale



Copyright © 2009 SAS Institute Inc. All Rights Reserved.