railo.runtime.tag
Class Table

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.ext.tag.BodyTagImpl
          extended by railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl
              extended by railo.runtime.tag.Table
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public final class Table
extends BodyTagTryCatchFinallyImpl

Builds a table in a CFML page. Use the cfcol tag to define table column and row characteristics. The cftable tag renders data either as preformatted text, or, with the HTMLTable attribute, as an HTML table. Use cftable to create tables if you don't want to write HTML table tag code, or if your data can be well presented as preformatted text.


Field Summary
static short ALIGN_CENTER
          Field ALIGN_CENTER
static short ALIGN_LEFT
          Field ALIGN_LEFT
static short ALIGN_RIGHT
          Field ALIGN_RIGHT
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
Table()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 void doFinally()
           
 void doInitBody()
           
 int doStartTag()
           
 void release()
           
 void setBorder(boolean border)
          set the value border Adds a border to the table.
 void setCol(String strHeader, String text, short align, int width)
           
 void setColheaders(boolean colheaders)
          set the value colheaders Displays headers for each column, as specified in the cfcol tag.
 void setColspacing(double colspacing)
          set the value colspacing Number of spaces to insert between columns 'default is 2'.
 void setHeaderlines(double headerlines)
          set the value headerlines Number of lines to use for the table header.
 void setHtmltable(boolean htmltable)
          set the value htmltable Renders the table as an HTML 3.0 table.
 void setMaxrows(double maxrows)
          set the value maxrows Maximum number of rows to display in the table.
 void setQuery(String query)
          set the value query Name of the cfquery from which to draw data.
 void setStartrow(double startrow)
          set the value startrow Specifies the query row from which to start processing.
 
Methods inherited from class railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl
doCatch
 
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl
setBodyContent
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

ALIGN_LEFT

public static final short ALIGN_LEFT
Field ALIGN_LEFT

See Also:
Constant Field Values

ALIGN_CENTER

public static final short ALIGN_CENTER
Field ALIGN_CENTER

See Also:
Constant Field Values

ALIGN_RIGHT

public static final short ALIGN_RIGHT
Field ALIGN_RIGHT

See Also:
Constant Field Values
Constructor Detail

Table

public Table()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BodyTagImpl

setQuery

public void setQuery(String query)
              throws PageException
set the value query Name of the cfquery from which to draw data.

Parameters:
query - value to set
Throws:
PageException

setMaxrows

public void setMaxrows(double maxrows)
set the value maxrows Maximum number of rows to display in the table.

Parameters:
maxrows - value to set

setStartrow

public void setStartrow(double startrow)
set the value startrow Specifies the query row from which to start processing.

Parameters:
startrow - value to set

setBorder

public void setBorder(boolean border)
set the value border Adds a border to the table. Use only when you specify the HTMLTable attribute for the table.

Parameters:
border - value to set

setColheaders

public void setColheaders(boolean colheaders)
set the value colheaders Displays headers for each column, as specified in the cfcol tag.

Parameters:
colheaders - value to set

setColspacing

public void setColspacing(double colspacing)
set the value colspacing Number of spaces to insert between columns 'default is 2'.

Parameters:
colspacing - value to set

setHtmltable

public void setHtmltable(boolean htmltable)
set the value htmltable Renders the table as an HTML 3.0 table.

Parameters:
htmltable - value to set

setHeaderlines

public void setHeaderlines(double headerlines)
set the value headerlines Number of lines to use for the table header. The default is 2, which leaves one line between the headers and the first row of the table.

Parameters:
headerlines - value to set

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException

doInitBody

public void doInitBody()
Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doInitBody in class BodyTagImpl

doAfterBody

public int doAfterBody()
                throws PageException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class BodyTagImpl
Throws:
PageException

doEndTag

public int doEndTag()
             throws PageException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
Throws:
PageException

doFinally

public void doFinally()
Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doFinally in class BodyTagTryCatchFinallyImpl

setCol

public void setCol(String strHeader,
                   String text,
                   short align,
                   int width)
            throws ExpressionException
Parameters:
strHeader -
text -
align -
width -
Throws:
ExpressionException


Copyright © 2012 Railo