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

Quick Search    Search Deep

info.crossbar.view.taglib
Class DatagridTag  view DatagridTag download DatagridTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byinfo.crossbar.view.taglib.DatagridTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class DatagridTag
extends javax.servlet.jsp.tagext.TagSupport

DatagridTag class for use by Crossbar

Version:
View source, revision history $Revision: 1.3 $ $Date: 2003/06/04 04:55:20 $

DESCRIPTION: The DatagridTag class takes tabular data obtained from a database and outputs a table using markup (such as HTML) provided by a Formatter.


Field Summary
private  java.lang.String bodystyle
           
private  java.lang.String footerstyle
           
private  java.lang.String formatterName
           
private  java.lang.String headerstyle
           
private static java.util.logging.Logger log
          Set up logging.
private  java.lang.String modelReference
           
private  CachedRowSet table
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
DatagridTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag for this instance.
 java.lang.String markup()
          Process the start tag for this instance.
 void setBodystyle(java.lang.String bodystyle)
          Accepts a String from a jsp page specifying a CSS style for table body cells.
 void setFooterstyle(java.lang.String footerstyle)
          Accepts a String from a jsp page specifying a CSS style for a table footer.
 void setFormatter(java.lang.String formatter)
          A Model can recommend how the tabular data should be displayed (for example, as a form or messages, or as a table of multiple rows).
 void setHeaderstyle(java.lang.String headerstyle)
          Accepts a String from a jsp page specifying a CSS style for a table header.
 void setModelReference(java.lang.String modelReference)
          Method accepts a CachedRowSet.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
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.


table

private CachedRowSet table

modelReference

private java.lang.String modelReference

formatterName

private java.lang.String formatterName

headerstyle

private java.lang.String headerstyle

bodystyle

private java.lang.String bodystyle

footerstyle

private java.lang.String footerstyle
Constructor Detail

DatagridTag

public DatagridTag()
Method Detail

setModelReference

public void setModelReference(java.lang.String modelReference)
Method accepts a CachedRowSet. The tabular data can be the result set from an SQL query, data for a form (field names and default values), a series of messages, or any other data set organized as fields and rows.


setFormatter

public void setFormatter(java.lang.String formatter)
A Model can recommend how the tabular data should be displayed (for example, as a form or messages, or as a table of multiple rows).


setHeaderstyle

public void setHeaderstyle(java.lang.String headerstyle)
Accepts a String from a jsp page specifying a CSS style for a table header.


setBodystyle

public void setBodystyle(java.lang.String bodystyle)
Accepts a String from a jsp page specifying a CSS style for table body cells.


setFooterstyle

public void setFooterstyle(java.lang.String footerstyle)
Accepts a String from a jsp page specifying a CSS style for a table footer.


doStartTag

public int doStartTag()
Process the start tag for this instance. See the JSP API specification for details.


markup

public java.lang.String markup()
                        throws javax.servlet.ServletException
Process the start tag for this instance. See the JSP API specification for details.