public abstract class

AbstractHtmlElementTag

extends AbstractDataBoundFormElementTag
java.lang.Object
   ↳ TagSupport
     ↳ org.springframework.web.servlet.tags.RequestContextAwareTag
       ↳ org.springframework.web.servlet.tags.HtmlEscapingAwareTag
         ↳ org.springframework.web.servlet.tags.form.AbstractFormTag
           ↳ org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
             ↳ org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base class for databinding-aware JSP tags that render HTML element. Provides a set of properties corresponding to the set of HTML attributes that are common across elements.

Additionally, this base class allows for rendering non-standard attributes as part of the tag's output. These attributes are accessible to subclasses if needed via the dynamicAttributes map.

Summary

Constants
String CLASS_ATTRIBUTE
String DIR_ATTRIBUTE
String LANG_ATTRIBUTE
String ONCLICK_ATTRIBUTE
String ONDBLCLICK_ATTRIBUTE
String ONKEYDOWN_ATTRIBUTE
String ONKEYPRESS_ATTRIBUTE
String ONKEYUP_ATTRIBUTE
String ONMOUSEDOWN_ATTRIBUTE
String ONMOUSEMOVE_ATTRIBUTE
String ONMOUSEOUT_ATTRIBUTE
String ONMOUSEOVER_ATTRIBUTE
String ONMOUSEUP_ATTRIBUTE
String STYLE_ATTRIBUTE
String TABINDEX_ATTRIBUTE
String TITLE_ATTRIBUTE
[Expand]
Inherited Constants
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
[Expand]
Inherited Fields
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
Public Constructors
AbstractHtmlElementTag()
Public Methods
void setCssClass(String cssClass)
Set the value of the 'class' attribute.
void setCssErrorClass(String cssErrorClass)
The CSS class to use when the field bound to a particular tag has errors.
void setCssStyle(String cssStyle)
Set the value of the 'style' attribute.
void setDir(String dir)
Set the value of the 'dir' attribute.
void setDynamicAttribute(String uri, String localName, Object value)
void setLang(String lang)
Set the value of the 'lang' attribute.
void setOnclick(String onclick)
Set the value of the 'onclick' attribute.
void setOndblclick(String ondblclick)
Set the value of the 'ondblclick' attribute.
void setOnkeydown(String onkeydown)
Set the value of the 'onkeydown' attribute.
void setOnkeypress(String onkeypress)
Set the value of the 'onkeypress' attribute.
void setOnkeyup(String onkeyup)
Set the value of the 'onkeyup' attribute.
void setOnmousedown(String onmousedown)
Set the value of the 'onmousedown' attribute.
void setOnmousemove(String onmousemove)
Set the value of the 'onmousemove' attribute.
void setOnmouseout(String onmouseout)
Set the value of the 'onmouseout' attribute.
void setOnmouseover(String onmouseover)
Set the value of the 'onmouseover' attribute.
void setOnmouseup(String onmouseup)
Set the value of the 'onmouseup' attribute.
void setTabindex(String tabindex)
Set the value of the 'tabindex' attribute.
void setTitle(String title)
Set the value of the 'title' attribute.
Protected Methods
String getCssClass()
Get the value of the 'class' attribute.
String getCssErrorClass()
The CSS class to use when the field bound to a particular tag has errors.
String getCssStyle()
Get the value of the 'style' attribute.
String getDir()
Get the value of the 'dir' attribute.
Map<StringObject> getDynamicAttributes()
Get the map of dynamic attributes.
String getLang()
Get the value of the 'lang' attribute.
String getOnclick()
Get the value of the 'onclick' attribute.
String getOndblclick()
Get the value of the 'ondblclick' attribute.
String getOnkeydown()
Get the value of the 'onkeydown' attribute.
String getOnkeypress()
Get the value of the 'onkeypress' attribute.
String getOnkeyup()
Get the value of the 'onkeyup' attribute.
String getOnmousedown()
Get the value of the 'onmousedown' attribute.
String getOnmousemove()
Get the value of the 'onmousemove' attribute.
String getOnmouseout()
Get the value of the 'onmouseout' attribute.
String getOnmouseover()
Get the value of the 'onmouseover' attribute.
String getOnmouseup()
Get the value of the 'onmouseup' attribute.
String getTabindex()
Get the value of the 'tabindex' attribute.
String getTitle()
Get the value of the 'title' attribute.
String resolveCssClass()
Gets the appropriate CSS class to use based on the state of the current BindStatus object.
void writeDefaultAttributes(TagWriter tagWriter)
Writes the default attributes configured via this base class to the supplied TagWriter.
void writeOptionalAttributes(TagWriter tagWriter)
Writes the optional attributes configured via this base class to the supplied TagWriter.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
From class org.springframework.web.servlet.tags.form.AbstractFormTag
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
From class java.lang.Object
From interface org.springframework.web.servlet.tags.EditorAwareTag

Constants

public static final String CLASS_ATTRIBUTE

Constant Value: "class"

public static final String DIR_ATTRIBUTE

Constant Value: "dir"

public static final String LANG_ATTRIBUTE

Constant Value: "lang"

public static final String ONCLICK_ATTRIBUTE

Constant Value: "onclick"

public static final String ONDBLCLICK_ATTRIBUTE

Constant Value: "ondblclick"

public static final String ONKEYDOWN_ATTRIBUTE

Constant Value: "onkeydown"

public static final String ONKEYPRESS_ATTRIBUTE

Constant Value: "onkeypress"

public static final String ONKEYUP_ATTRIBUTE

Constant Value: "onkeyup"

public static final String ONMOUSEDOWN_ATTRIBUTE

Constant Value: "onmousedown"

public static final String ONMOUSEMOVE_ATTRIBUTE

Constant Value: "onmousemove"

public static final String ONMOUSEOUT_ATTRIBUTE

Constant Value: "onmouseout"

public static final String ONMOUSEOVER_ATTRIBUTE

Constant Value: "onmouseover"

public static final String ONMOUSEUP_ATTRIBUTE

Constant Value: "onmouseup"

public static final String STYLE_ATTRIBUTE

Constant Value: "style"

public static final String TABINDEX_ATTRIBUTE

Constant Value: "tabindex"

public static final String TITLE_ATTRIBUTE

Constant Value: "title"

Public Constructors

public AbstractHtmlElementTag ()

Public Methods

public void setCssClass (String cssClass)

Set the value of the 'class' attribute. May be a runtime expression.

public void setCssErrorClass (String cssErrorClass)

The CSS class to use when the field bound to a particular tag has errors. May be a runtime expression.

public void setCssStyle (String cssStyle)

Set the value of the 'style' attribute. May be a runtime expression.

public void setDir (String dir)

Set the value of the 'dir' attribute. May be a runtime expression.

public void setDynamicAttribute (String uri, String localName, Object value)

Throws
JspException

public void setLang (String lang)

Set the value of the 'lang' attribute. May be a runtime expression.

public void setOnclick (String onclick)

Set the value of the 'onclick' attribute. May be a runtime expression.

public void setOndblclick (String ondblclick)

Set the value of the 'ondblclick' attribute. May be a runtime expression.

public void setOnkeydown (String onkeydown)

Set the value of the 'onkeydown' attribute. May be a runtime expression.

public void setOnkeypress (String onkeypress)

Set the value of the 'onkeypress' attribute. May be a runtime expression.

public void setOnkeyup (String onkeyup)

Set the value of the 'onkeyup' attribute. May be a runtime expression.

public void setOnmousedown (String onmousedown)

Set the value of the 'onmousedown' attribute. May be a runtime expression.

public void setOnmousemove (String onmousemove)

Set the value of the 'onmousemove' attribute. May be a runtime expression.

public void setOnmouseout (String onmouseout)

Set the value of the 'onmouseout' attribute. May be a runtime expression.

public void setOnmouseover (String onmouseover)

Set the value of the 'onmouseover' attribute. May be a runtime expression.

public void setOnmouseup (String onmouseup)

Set the value of the 'onmouseup' attribute. May be a runtime expression.

public void setTabindex (String tabindex)

Set the value of the 'tabindex' attribute. May be a runtime expression.

public void setTitle (String title)

Set the value of the 'title' attribute. May be a runtime expression.

Protected Methods

protected String getCssClass ()

Get the value of the 'class' attribute. May be a runtime expression.

protected String getCssErrorClass ()

The CSS class to use when the field bound to a particular tag has errors. May be a runtime expression.

protected String getCssStyle ()

Get the value of the 'style' attribute. May be a runtime expression.

protected String getDir ()

Get the value of the 'dir' attribute. May be a runtime expression.

protected Map<StringObject> getDynamicAttributes ()

Get the map of dynamic attributes.

protected String getLang ()

Get the value of the 'lang' attribute. May be a runtime expression.

protected String getOnclick ()

Get the value of the 'onclick' attribute. May be a runtime expression.

protected String getOndblclick ()

Get the value of the 'ondblclick' attribute. May be a runtime expression.

protected String getOnkeydown ()

Get the value of the 'onkeydown' attribute. May be a runtime expression.

protected String getOnkeypress ()

Get the value of the 'onkeypress' attribute. May be a runtime expression.

protected String getOnkeyup ()

Get the value of the 'onkeyup' attribute. May be a runtime expression.

protected String getOnmousedown ()

Get the value of the 'onmousedown' attribute. May be a runtime expression.

protected String getOnmousemove ()

Get the value of the 'onmousemove' attribute. May be a runtime expression.

protected String getOnmouseout ()

Get the value of the 'onmouseout' attribute. May be a runtime expression.

protected String getOnmouseover ()

Get the value of the 'onmouseover' attribute. May be a runtime expression.

protected String getOnmouseup ()

Get the value of the 'onmouseup' attribute. May be a runtime expression.

protected String getTabindex ()

Get the value of the 'tabindex' attribute. May be a runtime expression.

protected String getTitle ()

Get the value of the 'title' attribute. May be a runtime expression.

protected String resolveCssClass ()

Gets the appropriate CSS class to use based on the state of the current BindStatus object.

Throws
JspException

protected void writeDefaultAttributes (TagWriter tagWriter)

Writes the default attributes configured via this base class to the supplied TagWriter. Subclasses should call this when they want the base attribute set to be written to the output.

Parameters
tagWriter the TagWriter to which any attributes are to be written
Throws
JspException

protected void writeOptionalAttributes (TagWriter tagWriter)

Writes the optional attributes configured via this base class to the supplied TagWriter. The set of optional attributes that will be rendered includes any non-standard dynamic attributes. Called by writeDefaultAttributes(TagWriter).

Throws
JspException