类 AbstractHtmlInputElementTag
- java.lang.Object
- javax.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
- org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag
- 所有已实现的接口:
Serializable
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,TryCatchFinally
,EditorAwareTag
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.
- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Rick Evans, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
字段 修饰符和类型 字段 说明 static String
ACCESSKEY_ATTRIBUTE
The name of the 'accesskey
' 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.static String
READONLY_ATTRIBUTE
The name of the 'readonly
' attribute.从类继承的字段 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
从类继承的字段 org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
NESTED_PATH_VARIABLE_NAME
从类继承的字段 org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
从类继承的字段 javax.servlet.jsp.tagext.TagSupport
pageContext
从接口继承的字段 javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
从接口继承的字段 javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
构造器概要
构造器 构造器 说明 AbstractHtmlInputElementTag()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String
getAccesskey()
Get the value of the 'accesskey
' attribute.protected String
getOnblur()
Get the value of the 'onblur
' attribute.protected String
getOnchange()
Get the value of the 'onchange
' attribute.protected String
getOnfocus()
Get the value of the 'onfocus
' attribute.protected boolean
isDisabled()
Get the value of the 'disabled
' attribute.protected boolean
isReadonly()
Gets the value of the 'readonly
' attribute.void
setAccesskey(String accesskey)
Set the value of the 'accesskey
' attribute.void
setDisabled(boolean disabled)
Set the value of the 'disabled
' attribute.void
setOnblur(String onblur)
Set the value of the 'onblur
' attribute.void
setOnchange(String onchange)
Set the value of the 'onchange
' attribute.void
setOnfocus(String onfocus)
Set the value of the 'onfocus
' attribute.void
setReadonly(boolean readonly)
Sets the value of the 'readonly
' attribute.protected void
writeOptionalAttributes(TagWriter tagWriter)
Adds input-specific optional attributes as defined by this base class.从类继承的方法 org.springframework.web.servlet.tags.form.AbstractHtmlElementTag
getCssClass, getCssErrorClass, getCssStyle, getDir, getDynamicAttributes, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getTabindex, getTitle, isValidDynamicAttribute, resolveCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setDynamicAttribute, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle, writeDefaultAttributes
从类继承的方法 org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
autogenerateId, convertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPath
从类继承的方法 org.springframework.web.servlet.tags.form.AbstractFormTag
createTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttribute, writeTagContent
从类继承的方法 org.springframework.web.servlet.tags.HtmlEscapingAwareTag
htmlEscape, isHtmlEscape, isResponseEncodedHtmlEscape, setHtmlEscape
从类继承的方法 org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doStartTag, getRequestContext
从类继承的方法 javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
字段详细资料
ONFOCUS_ATTRIBUTE
public static final String ONFOCUS_ATTRIBUTE
The name of the 'onfocus
' attribute.- 另请参阅:
- 常量字段值
ONBLUR_ATTRIBUTE
public static final String ONBLUR_ATTRIBUTE
The name of the 'onblur
' attribute.- 另请参阅:
- 常量字段值
ONCHANGE_ATTRIBUTE
public static final String ONCHANGE_ATTRIBUTE
The name of the 'onchange
' attribute.- 另请参阅:
- 常量字段值
ACCESSKEY_ATTRIBUTE
public static final String ACCESSKEY_ATTRIBUTE
The name of the 'accesskey
' attribute.- 另请参阅:
- 常量字段值
DISABLED_ATTRIBUTE
public static final String DISABLED_ATTRIBUTE
The name of the 'disabled
' attribute.- 另请参阅:
- 常量字段值
READONLY_ATTRIBUTE
public static final String READONLY_ATTRIBUTE
The name of the 'readonly
' attribute.- 另请参阅:
- 常量字段值
构造器详细资料
AbstractHtmlInputElementTag
public AbstractHtmlInputElementTag()
方法详细资料
setOnfocus
public void setOnfocus(String onfocus)
Set the value of the 'onfocus
' attribute. May be a runtime expression.
getOnfocus
protected String getOnfocus()
Get the value of the 'onfocus
' attribute.
setOnblur
public void setOnblur(String onblur)
Set the value of the 'onblur
' attribute. May be a runtime expression.
setOnchange
public void setOnchange(String onchange)
Set the value of the 'onchange
' attribute. May be a runtime expression.
getOnchange
protected String getOnchange()
Get the value of the 'onchange
' attribute.
setAccesskey
public void setAccesskey(String accesskey)
Set the value of the 'accesskey
' attribute. May be a runtime expression.
getAccesskey
protected String getAccesskey()
Get the value of the 'accesskey
' attribute.
setDisabled
public void setDisabled(boolean disabled)
Set the value of the 'disabled
' attribute.
isDisabled
protected boolean isDisabled()
Get the value of the 'disabled
' attribute.
setReadonly
public void setReadonly(boolean readonly)
Sets the value of the 'readonly
' attribute.
isReadonly
protected boolean isReadonly()
Gets the value of the 'readonly
' attribute.
writeOptionalAttributes
protected void writeOptionalAttributes(TagWriter tagWriter) throws JspException
Adds input-specific optional attributes as defined by this base class.