java.lang.Object
javax.servlet.jsp.tagext.TagSupport
info.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.
| 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 |
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
DatagridTag
public DatagridTag()
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.