类 ButtonTag
- 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.ButtonTag
- 所有已实现的接口:
Serializable
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,TryCatchFinally
,EditorAwareTag
public class ButtonTag extends AbstractHtmlElementTag
An HTML button tag. This tag is provided for completeness if the application relies on aRequestDataValueProcessor
.- 从以下版本开始:
- 3.1
- 作者:
- Rossen Stoyanchev
- 另请参阅:
- 序列化表格
字段概要
字段 修饰符和类型 字段 说明 static String
DISABLED_ATTRIBUTE
The name of the 'disabled
' 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
构造器概要
构造器 构造器 说明 ButtonTag()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
doEndTag()
Closes the 'button
' block tag.protected String
getDefaultValue()
Return the default value.String
getName()
Set the value of the 'name
' attribute.protected String
getType()
Get the value of the 'type
' attribute.String
getValue()
Get the value of the 'value
' attribute.boolean
isDisabled()
Get the value of the 'disabled
' attribute.void
setDisabled(boolean disabled)
Set the value of the 'disabled
' attribute.void
setName(String name)
Get the value of the 'name
' attribute.void
setValue(String value)
Set the value of the 'value
' attribute.protected int
writeTagContent(TagWriter tagWriter)
Subclasses should implement this method to perform tag content rendering.protected void
writeValue(TagWriter tagWriter)
Writes the 'value
' attribute to the suppliedTagWriter
.从类继承的方法 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, writeOptionalAttributes
从类继承的方法 org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag
autogenerateId, convertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPath
从类继承的方法 org.springframework.web.servlet.tags.form.AbstractFormTag
createTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttribute
从类继承的方法 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, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
字段详细资料
DISABLED_ATTRIBUTE
public static final String DISABLED_ATTRIBUTE
The name of the 'disabled
' attribute.- 另请参阅:
- 常量字段值
构造器详细资料
ButtonTag
public ButtonTag()
方法详细资料
getName
public String getName()
Set the value of the 'name
' attribute.- 覆盖:
getName
在类中AbstractDataBoundFormElementTag
- 返回:
- the value for the HTML '
name
' attribute
setDisabled
public void setDisabled(boolean disabled)
Set the value of the 'disabled
' attribute.
isDisabled
public boolean isDisabled()
Get the value of the 'disabled
' attribute.
writeTagContent
protected int writeTagContent(TagWriter tagWriter) throws JspException
从类复制的说明:AbstractFormTag
Subclasses should implement this method to perform tag content rendering.- 指定者:
writeTagContent
在类中AbstractFormTag
- 返回:
- valid tag render instruction as per
Tag.doStartTag()
. - 抛出:
JspException
writeValue
protected void writeValue(TagWriter tagWriter) throws JspException
Writes the 'value
' attribute to the suppliedTagWriter
. Subclasses may choose to override this implementation to control exactly when the value is written.- 抛出:
JspException
getDefaultValue
protected String getDefaultValue()
Return the default value.- 返回:
- the default value if none supplied
getType
protected String getType()
Get the value of the 'type
' attribute. Subclasses can override this to change the type of 'input
' element rendered. Default value is 'submit
'.
doEndTag
public int doEndTag() throws JspException
Closes the 'button
' block tag.- 指定者:
doEndTag
在接口中Tag
- 覆盖:
doEndTag
在类中TagSupport
- 抛出:
JspException