Base tag which provides setters for all the standard html attributes.
Method from org.displaytag.tags.HtmlTableTag Detail: |
public void addClass(String value) {
Object classAttributes = this.attributeMap.get(TagConstants.ATTRIBUTE_CLASS);
if (classAttributes == null)
{
this.attributeMap.put(TagConstants.ATTRIBUTE_CLASS, new MultipleHtmlAttribute(value));
}
else
{
((MultipleHtmlAttribute) classAttributes).addAttributeValue(value);
}
}
Adds a css class to the class attribute (html class suports multiple values). |
public HtmlAttributeMap getAttributeMap() {
return this.attributeMap;
}
Return a map of html attributes. Should be used for extensions only, html attributes are normally printed out in
the getOpenTag() method. |
public void release() {
this.attributeMap.clear();
super.release();
}
|
public void setCellpadding(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_CELLPADDING, value);
}
setter for the "cellpadding" html attribute. |
public void setCellspacing(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_CELLSPACING, value);
}
setter for the "cellspacing" html attribute. |
public void setClass(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_CLASS, new MultipleHtmlAttribute(value));
}
setter for the "class" html attribute. |
public void setFrame(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_FRAME, value);
}
setter for the "frame" html attribute. |
public void setHtmlId(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_ID, value);
}
setter for the "id" html attribute. Don't use setId() to avoid overriding original TagSupport method. |
public void setRules(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_RULES, value);
}
setter for the "rules" html attribute. |
public void setStyle(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_STYLE, value);
}
setter for the "style" html attribute. |
public void setSummary(String value) {
this.attributeMap.put(TagConstants.ATTRIBUTE_SUMMARY, value);
}
setter for the "summary" html attribute. |