org.displaytag.tags
Class HtmlTableTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.displaytag.tags.TemplateTag
              extended byorg.displaytag.tags.HtmlTableTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
TableTag

public abstract class HtmlTableTag
extends TemplateTag

Base tag which provides setters for all the standard html attributes.

Version:
$Revision: 1.12 $ ($Author: fgiust $)
Author:
Fabrizio Giustina
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
HtmlTableTag()
           
 
Method Summary
 void addClass(java.lang.String value)
          Adds a css class to the class attribute (html class suports multiple values).
 java.lang.String getCloseTag()
          create the closing tag.
protected  java.lang.String getHtmlId()
          getter for the "id" html attribute.
 java.lang.String getOpenTag()
          create the open tag containing all the attributes.
 void release()
           
 void setAlign(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setBackground(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setBgcolor(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setBorder(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setCellpadding(java.lang.String value)
          setter for the "cellpadding" html attribute.
 void setCellspacing(java.lang.String value)
          setter for the "cellspacing" html attribute.
 void setClass(java.lang.String value)
          setter for the "class" html attribute.
 void setFrame(java.lang.String value)
          setter for the "frame" html attribute.
 void setHeight(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setHspace(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setHtmlId(java.lang.String value)
          setter for the "id" html attribute.
 void setRules(java.lang.String value)
          setter for the "rules" html attribute.
 void setStyle(java.lang.String value)
          setter for the "style" html attribute.
 void setStyleClass(java.lang.String value)
          Deprecated. use setClass()
 void setSummary(java.lang.String value)
          setter for the "summary" html attribute.
 void setVspace(java.lang.String value)
          Deprecated. use css in "class" or "style"
 void setWidth(java.lang.String value)
          Deprecated. use css in "class" or "style"
 
Methods inherited from class org.displaytag.tags.TemplateTag
evaluateExpression, write, write, write
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

HtmlTableTag

public HtmlTableTag()
Method Detail

setWidth

public void setWidth(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "width" html attribute.

Parameters:
value - attribute value

setBorder

public void setBorder(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "border" html attribute.

Parameters:
value - attribute value

setCellspacing

public void setCellspacing(java.lang.String value)
setter for the "cellspacing" html attribute.

Parameters:
value - attribute value

setCellpadding

public void setCellpadding(java.lang.String value)
setter for the "cellpadding" html attribute.

Parameters:
value - attribute value

setAlign

public void setAlign(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "align" html attribute.

Parameters:
value - attribute value

setBackground

public void setBackground(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "background" html attribute.

Parameters:
value - attribute value

setBgcolor

public void setBgcolor(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "bgcolor" html attribute.

Parameters:
value - attribute value

setFrame

public void setFrame(java.lang.String value)
setter for the "frame" html attribute.

Parameters:
value - attribute value

setHeight

public void setHeight(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "height" html attribute.

Parameters:
value - attribute value

setHspace

public void setHspace(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "hspace" html attribute.

Parameters:
value - attribute value

setRules

public void setRules(java.lang.String value)
setter for the "rules" html attribute.

Parameters:
value - attribute value

setStyle

public void setStyle(java.lang.String value)
setter for the "style" html attribute.

Parameters:
value - attribute value

setSummary

public void setSummary(java.lang.String value)
setter for the "summary" html attribute.

Parameters:
value - attribute value

setVspace

public void setVspace(java.lang.String value)
Deprecated. use css in "class" or "style"

setter for the "vspace" html attribute.

Parameters:
value - attribute value

setStyleClass

public void setStyleClass(java.lang.String value)
Deprecated. use setClass()

setter for the "class" html attribute.

Parameters:
value - attribute value

setClass

public void setClass(java.lang.String value)
setter for the "class" html attribute.

Parameters:
value - attribute value

setHtmlId

public void setHtmlId(java.lang.String value)
setter for the "id" html attribute. Don't use setId() to avoid overriding original TagSupport method.

Parameters:
value - attribute value

getHtmlId

protected java.lang.String getHtmlId()
getter for the "id" html attribute.

Returns:
attribute value

addClass

public void addClass(java.lang.String value)
Adds a css class to the class attribute (html class suports multiple values).

Parameters:
value - attribute value

getOpenTag

public java.lang.String getOpenTag()
create the open tag containing all the attributes.

Returns:
open tag string: %lt;table attribute="value" ... >

getCloseTag

public java.lang.String getCloseTag()
create the closing tag.

Returns:
%lt;/table>

release

public void release()
See Also:
Tag.release()


Copyright © 2002-2005 the Displaytag team. All Rights Reserved.