org.displaytag.tags
Class HtmlTableTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.displaytag.tags.TemplateTag
              extended by org.displaytag.tags.HtmlTableTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, 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: 1081 $ ($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).
 HtmlAttributeMap getAttributeMap()
          Return a map of html attributes.
 void release()
           
 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 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 setSummary(java.lang.String value)
          setter for the "summary" html attribute.
 
Methods inherited from class org.displaytag.tags.TemplateTag
evaluateExpression
 
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

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

setFrame

public void setFrame(java.lang.String value)
setter for the "frame" 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

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

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

release

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

getAttributeMap

public HtmlAttributeMap getAttributeMap()
Return a map of html attributes. Should be used for extensions only, html attributes are normally printed out in the getOpenTag() method.

Returns:
map of html attributes


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