Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

info.crossbar.view.formatter
Class BaseFormatter  view BaseFormatter download BaseFormatter.java

java.lang.Object
  extended byinfo.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.


Field Summary
private static java.util.logging.Logger log
          Set up logging.
 
Constructor Summary
BaseFormatter()
           
 
Method Summary
 java.lang.String getClassInfo()
          Obtain information on this class.
 java.lang.String markup(javax.servlet.http.HttpServletRequest request, CachedRowSet table, java.lang.String headerstyle, java.lang.String bodystyle, java.lang.String footerstyle)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log
Set up logging.

Constructor Detail

BaseFormatter

public BaseFormatter()
Method Detail

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