public class ButtonTag extends AbstractHtmlElementTag
RequestDataValueProcessor.| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLED_ATTRIBUTE
The name of the '
disabled' attribute. |
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_ATTRIBUTENESTED_PATH_VARIABLE_NAMElogger, REQUEST_CONTEXT_PAGE_ATTRIBUTEpageContextEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
ButtonTag() |
| Modifier and Type | Method and Description |
|---|---|
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 supplied TagWriter. |
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, writeOptionalAttributesautogenerateId, convertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPathcreateTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttributeisHtmlEscape, setHtmlEscapedoCatch, doStartTag, getRequestContextdoAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValuepublic static final String DISABLED_ATTRIBUTE
disabled' attribute.public void setName(String name)
name' attribute.public String getName()
name' attribute.getName in class AbstractDataBoundFormElementTagname' attributepublic void setValue(String value)
value' attribute.public String getValue()
value' attribute.public void setDisabled(boolean disabled)
disabled' attribute.public boolean isDisabled()
disabled' attribute.protected int writeTagContent(TagWriter tagWriter) throws JspException
AbstractFormTagwriteTagContent in class AbstractFormTagTag.doStartTag().JspExceptionprotected void writeValue(TagWriter tagWriter) throws JspException
value' attribute to the supplied TagWriter.
Subclasses may choose to override this implementation to control exactly
when the value is written.JspExceptionprotected String getDefaultValue()
protected String getType()
type' attribute. Subclasses
can override this to change the type of 'input' element
rendered. Default value is 'submit'.public int doEndTag()
throws JspException
button' block tag.doEndTag in interface TagdoEndTag in class TagSupportJspException