| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.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
public abstract class AbstractHtmlElementTag
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.
| Field Summary | |
|---|---|
| static String | CLASS_ATTRIBUTE | 
| static String | DIR_ATTRIBUTE | 
| static String | LANG_ATTRIBUTE | 
| static String | ONCLICK_ATTRIBUTE | 
| static String | ONDBLCLICK_ATTRIBUTE | 
| static String | ONKEYDOWN_ATTRIBUTE | 
| static String | ONKEYPRESS_ATTRIBUTE | 
| static String | ONKEYUP_ATTRIBUTE | 
| static String | ONMOUSEDOWN_ATTRIBUTE | 
| static String | ONMOUSEMOVE_ATTRIBUTE | 
| static String | ONMOUSEOUT_ATTRIBUTE | 
| static String | ONMOUSEOVER_ATTRIBUTE | 
| static String | ONMOUSEUP_ATTRIBUTE | 
| static String | STYLE_ATTRIBUTE | 
| static String | TABINDEX_ATTRIBUTE | 
| static String | TITLE_ATTRIBUTE | 
| Fields inherited from class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag | 
|---|
| COMMAND_NAME_VARIABLE_NAME, NESTED_PATH_VARIABLE_NAME | 
| Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag | 
|---|
| logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE | 
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport | 
|---|
| pageContext | 
| 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 | |
|---|---|
| AbstractHtmlElementTag() | |
| Method Summary | |
|---|---|
| protected  String | getCssClass()Get the value of the ' class' attribute. | 
| protected  String | getCssErrorClass()The CSS class to use when the field bound to a particular tag has errors. | 
| protected  String | getCssStyle()Get the value of the ' style' attribute. | 
| protected  String | getDir()Get the value of the ' dir' attribute. | 
| protected  String | getLang()Get the value of the ' lang' attribute. | 
| protected  String | getOnclick()Get the value of the ' onclick' attribute. | 
| protected  String | getOndblclick()Get the value of the ' ondblclick' attribute. | 
| protected  String | getOnkeydown()Get the value of the ' onkeydown' attribute. | 
| protected  String | getOnkeypress()Get the value of the ' onkeypress' attribute. | 
| protected  String | getOnkeyup()Get the value of the ' onkeyup' attribute. | 
| protected  String | getOnmousedown()Get the value of the ' onmousedown' attribute. | 
| protected  String | getOnmousemove()Get the value of the ' onmousemove' attribute. | 
| protected  String | getOnmouseout()Get the value of the ' onmouseout' attribute. | 
| protected  String | getOnmouseover()Get the value of the ' onmouseover' attribute. | 
| protected  String | getOnmouseup()Get the value of the ' onmouseup' attribute. | 
| protected  String | getTabindex()Get the value of the ' tabindex' attribute. | 
| protected  String | getTitle()Get the value of the ' title' attribute. | 
| protected  String | resolveCssClass()Gets the appropriate CSS class to use based on the state of the current BindStatusobject. | 
|  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 | 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  void | writeDefaultAttributes(TagWriter tagWriter)Writes the default attributes configured via this base class to the supplied TagWriter. | 
| protected  void | writeOptionalAttributes(TagWriter tagWriter)Writes the optional attributes configured via this base class to the supplied TagWriter. | 
| Methods inherited from class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag | 
|---|
| autogenerateId, doFinally, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, resolveId, setId, setPath | 
| Methods inherited from class org.springframework.web.servlet.tags.form.AbstractFormTag | 
|---|
| createTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttribute, writeTagContent | 
| Methods inherited from class org.springframework.web.servlet.tags.HtmlEscapingAwareTag | 
|---|
| isHtmlEscape, setHtmlEscape | 
| Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag | 
|---|
| doCatch, doStartTag, getRequestContext | 
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport | 
|---|
| doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String CLASS_ATTRIBUTE
public static final String STYLE_ATTRIBUTE
public static final String LANG_ATTRIBUTE
public static final String TITLE_ATTRIBUTE
public static final String DIR_ATTRIBUTE
public static final String TABINDEX_ATTRIBUTE
public static final String ONCLICK_ATTRIBUTE
public static final String ONDBLCLICK_ATTRIBUTE
public static final String ONMOUSEDOWN_ATTRIBUTE
public static final String ONMOUSEUP_ATTRIBUTE
public static final String ONMOUSEOVER_ATTRIBUTE
public static final String ONMOUSEMOVE_ATTRIBUTE
public static final String ONMOUSEOUT_ATTRIBUTE
public static final String ONKEYPRESS_ATTRIBUTE
public static final String ONKEYUP_ATTRIBUTE
public static final String ONKEYDOWN_ATTRIBUTE
| Constructor Detail | 
|---|
public AbstractHtmlElementTag()
| Method Detail | 
|---|
public void setCssClass(String cssClass)
class' attribute.
 May be a runtime expression.
protected String getCssClass()
class' attribute.
 May be a runtime expression.
public void setCssErrorClass(String cssErrorClass)
protected String getCssErrorClass()
public void setCssStyle(String cssStyle)
style' attribute.
 May be a runtime expression.
protected String getCssStyle()
style' attribute.
 May be a runtime expression.
public void setLang(String lang)
lang' attribute.
 May be a runtime expression.
protected String getLang()
lang' attribute.
 May be a runtime expression.
public void setTitle(String title)
title' attribute.
 May be a runtime expression.
protected String getTitle()
title' attribute.
 May be a runtime expression.
public void setDir(String dir)
dir' attribute.
 May be a runtime expression.
protected String getDir()
dir' attribute.
 May be a runtime expression.
public void setTabindex(String tabindex)
tabindex' attribute.
 May be a runtime expression.
protected String getTabindex()
tabindex' attribute.
 May be a runtime expression.
public void setOnclick(String onclick)
onclick' attribute.
 May be a runtime expression.
protected String getOnclick()
onclick' attribute.
 May be a runtime expression.
public void setOndblclick(String ondblclick)
ondblclick' attribute.
 May be a runtime expression.
protected String getOndblclick()
ondblclick' attribute.
 May be a runtime expression.
public void setOnmousedown(String onmousedown)
onmousedown' attribute.
 May be a runtime expression.
protected String getOnmousedown()
onmousedown' attribute.
 May be a runtime expression.
public void setOnmouseup(String onmouseup)
onmouseup' attribute.
 May be a runtime expression.
protected String getOnmouseup()
onmouseup' attribute.
 May be a runtime expression.
public void setOnmouseover(String onmouseover)
onmouseover' attribute.
 May be a runtime expression.
protected String getOnmouseover()
onmouseover' attribute.
 May be a runtime expression.
public void setOnmousemove(String onmousemove)
onmousemove' attribute.
 May be a runtime expression.
protected String getOnmousemove()
onmousemove' attribute.
 May be a runtime expression.
public void setOnmouseout(String onmouseout)
onmouseout' attribute.
 May be a runtime expression.
protected String getOnmouseout()
onmouseout' attribute.
 May be a runtime expression.
public void setOnkeypress(String onkeypress)
onkeypress' attribute.
 May be a runtime expression.
protected String getOnkeypress()
onkeypress' attribute.
 May be a runtime expression.
public void setOnkeyup(String onkeyup)
onkeyup' attribute.
 May be a runtime expression.
protected String getOnkeyup()
onkeyup' attribute.
 May be a runtime expression.
public void setOnkeydown(String onkeydown)
onkeydown' attribute.
 May be a runtime expression.
protected String getOnkeydown()
onkeydown' attribute.
 May be a runtime expression.
protected void writeDefaultAttributes(TagWriter tagWriter)
                               throws JspException
TagWriter.
 Subclasses should call this when they want the base attribute set to be written to the output.
writeDefaultAttributes in class AbstractDataBoundFormElementTagtagWriter - the TagWriter to which any attributes are to be written
JspException
protected void writeOptionalAttributes(TagWriter tagWriter)
                                throws JspException
TagWriter.
 Called by writeDefaultAttributes(TagWriter).
JspException
protected String resolveCssClass()
                          throws JspException
BindStatus object.
JspException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||