java.lang.Object
info.crossbar.view.formatter.BaseFormatter
- All Implemented Interfaces:
- FormatterAbstraction
- public class BaseFormatter
- extends java.lang.Object
- implements FormatterAbstraction
BaseFormatter class for use by Crossbar
- Version:
- View source, revision history
$Revision: 1.3 $ $Date: 2003/06/04 04:55:32 $
DESCRIPTION:
This is class implements the FormatterAbstraction interface. It is intended to
parse a CachedRowSet of tabular data and markup the data for presentation on
a JSP page by a custom tag. A custom tag can instatiate a Formatter for
presenting the tabular data in different ways.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static java.util.logging.Logger log
- Set up logging.
BaseFormatter
public BaseFormatter()
markup
public java.lang.String markup(javax.servlet.http.HttpServletRequest request,
CachedRowSet table,
java.lang.String headerstyle,
java.lang.String bodystyle,
java.lang.String footerstyle)
throws javax.servlet.ServletException
- Given a CachedRowSet containing tabular data, iterate through each row
and column, obtaining each field value and wrapping it with markup (for
example, HTML tags) to be returned as a string to a custom tag for
inclusion in a jsp page.
- Specified by:
markup in interface FormatterAbstraction
getClassInfo
public java.lang.String getClassInfo()
- Obtain information on this class.
- Specified by:
getClassInfo in interface FormatterAbstraction