The Spring Framework

org.springframework.web.servlet.tags.form
Class AbstractHtmlInputElementTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.springframework.web.servlet.tags.RequestContextAwareTag
          extended by org.springframework.web.servlet.tags.HtmlEscapingAwareTag
              extended by org.springframework.web.servlet.tags.form.AbstractFormTag
                  extended by org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
                      extended by org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
                          extended by org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag, TryCatchFinally
Direct Known Subclasses:
CheckboxTag, InputTag, RadioButtonTag, SelectTag, TextareaTag

public abstract class AbstractHtmlInputElementTag
extends AbstractHtmlElementTag

Base class for databinding-aware JSP tags that render HTML form input element.

Provides a set of properties corresponding to the set of HTML attributes that are common across form input elements.

Since:
2.0
Author:
Rob Harrop
See Also:
Serialized Form

Field Summary
static String ACCESSKEY_ATTRIBUTE
          The name of the 'accesskey' attribute.
protected  String disabled
          The value of the 'disabled' attribute.
static String DISABLED_ATTRIBUTE
          The name of the 'disabled' attribute.
static String ONBLUR_ATTRIBUTE
          The name of the 'onblur' attribute.
static String ONCHANGE_ATTRIBUTE
          The name of the 'onchange' attribute.
static String ONFOCUS_ATTRIBUTE
          The name of the 'onfocus' attribute.
 
Fields inherited from class org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
CLASS_ATTRIBUTE, DIR_ATTRIBUTE, LANG_ATTRIBUTE, ONCLICK_ATTRIBUTE, ONDBLCLICK_ATTRIBUTE, ONKEYDOWN_ATTRIBUTE, ONKEYPRESS_ATTRIBUTE, ONKEYUP_ATTRIBUTE, ONMOUSEDOWN_ATTRIBUTE, ONMOUSEMOVE_ATTRIBUTE, ONMOUSEOUT_ATTRIBUTE, ONMOUSEOVER_ATTRIBUTE, ONMOUSEUP_ATTRIBUTE, STYLE_ATTRIBUTE, TABINDEX_ATTRIBUTE, TITLE_ATTRIBUTE
 
Fields inherited from class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
ID_ATTRIBUTE
 
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
AbstractHtmlInputElementTag()
           
 
Method Summary
protected  String getAccesskey()
          Gets the value of the 'accesskey' attribute.
protected  String getDisabled()
          Gets the value of the 'disabled' attribute.
protected  String getOnblur()
          Gets the value of the 'onblur' attribute.
protected  String getOnchange()
          Gets the value of the 'onchange' attribute.
protected  String getOnfocus()
          Gets the value of the 'onfocus' attribute.
protected  boolean isDisabled()
          Is the current HTML tag disabled?
 void setAccesskey(String accesskey)
          Sets the value of the 'accesskey' attribute.
 void setDisabled(String disabled)
          Sets the value of the 'disabled' attribute.
 void setOnblur(String onblur)
          Sets the value of the 'onblur' attribute.
 void setOnchange(String onchange)
          Sets the value of the 'onchange' attribute.
 void setOnfocus(String onfocus)
          Sets the value of the 'onfocus' attribute.
protected  void writeDefaultAttributes(TagWriter tagWriter)
          Writes the default attributes configured via this base class to the supplied TagWriter.
 
Methods inherited from class org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
getCssClass, getCssErrorClass, getCssStyle, getDir, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTabindex, getTitle, resolveCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle
 
Methods inherited from class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
autogenerateId, doFinally, getBindStatus, getBoundValue, getId, getName, getNestedPath, getPath, getPropertyEditor, setId, setPath
 
Methods inherited from class org.springframework.web.servlet.tags.form.AbstractFormTag
createTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, 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

ONFOCUS_ATTRIBUTE

public static final String ONFOCUS_ATTRIBUTE
The name of the 'onfocus' attribute.

See Also:
Constant Field Values

ONBLUR_ATTRIBUTE

public static final String ONBLUR_ATTRIBUTE
The name of the 'onblur' attribute.

See Also:
Constant Field Values

ONCHANGE_ATTRIBUTE

public static final String ONCHANGE_ATTRIBUTE
The name of the 'onchange' attribute.

See Also:
Constant Field Values

ACCESSKEY_ATTRIBUTE

public static final String ACCESSKEY_ATTRIBUTE
The name of the 'accesskey' attribute.

See Also:
Constant Field Values

DISABLED_ATTRIBUTE

public static final String DISABLED_ATTRIBUTE
The name of the 'disabled' attribute.

See Also:
Constant Field Values

disabled

protected String disabled
The value of the 'disabled' attribute.

Constructor Detail

AbstractHtmlInputElementTag

public AbstractHtmlInputElementTag()
Method Detail

setOnfocus

public void setOnfocus(String onfocus)
Sets the value of the 'onfocus' attribute. May be a runtime expression.


getOnfocus

protected String getOnfocus()
Gets the value of the 'onfocus' attribute. May be a runtime expression.


setOnblur

public void setOnblur(String onblur)
Sets the value of the 'onblur' attribute. May be a runtime expression.


getOnblur

protected String getOnblur()
Gets the value of the 'onblur' attribute. May be a runtime expression.


setOnchange

public void setOnchange(String onchange)
Sets the value of the 'onchange' attribute. May be a runtime expression.


getOnchange

protected String getOnchange()
Gets the value of the 'onchange' attribute. May be a runtime expression.


setAccesskey

public void setAccesskey(String accesskey)
Sets the value of the 'accesskey' attribute. May be a runtime expression.


getAccesskey

protected String getAccesskey()
Gets the value of the 'accesskey' attribute. May be a runtime expression.


setDisabled

public void setDisabled(String disabled)
Sets the value of the 'disabled' attribute. May be a runtime expression.


getDisabled

protected String getDisabled()
Gets the value of the 'disabled' attribute. May be a runtime expression.


writeDefaultAttributes

protected void writeDefaultAttributes(TagWriter tagWriter)
                               throws JspException
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.

Overrides:
writeDefaultAttributes in class AbstractHtmlElementTag
Parameters:
tagWriter - the TagWriter to which any attributes are to be written
Throws:
JspException

isDisabled

protected boolean isDisabled()
Is the current HTML tag disabled?


The Spring Framework

Copyright © 2002-2006 The Spring Framework.