|
|||||||||
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
org.springframework.web.servlet.tags.form.AbstractHtmlInputElementTag
public abstract class AbstractHtmlInputElementTag
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.
Field Summary | |
---|---|
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. |
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 |
---|
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 | |
---|---|
AbstractHtmlInputElementTag()
|
Method Summary | |
---|---|
protected String |
getAccesskey()
Get the value of the ' accesskey ' attribute. |
protected String |
getDisabled()
Get the value of the ' disabled ' 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 String |
getReadonly()
Gets the value of the ' readonly ' attribute. |
protected boolean |
isDisabled()
Is the current HTML tag disabled? |
protected boolean |
isReadonly()
Is the current HTML tag readonly? |
void |
setAccesskey(String accesskey)
Set the value of the ' accesskey ' attribute. |
void |
setDisabled(String 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(String readonly)
Sets the value of the ' readonly ' attribute. |
protected void |
writeOptionalAttributes(TagWriter tagWriter)
Adds input-specific optional attributes as defined by this base class. |
Methods inherited from 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 |
Methods inherited from class org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag |
---|
autogenerateId, convertToDisplayString, doFinally, getBindStatus, getBoundValue, getEditor, getId, getName, getNestedPath, getPath, getPropertyEditor, getPropertyPath, processFieldValue, resolveId, setId, setPath |
Methods inherited from class org.springframework.web.servlet.tags.form.AbstractFormTag |
---|
createTagWriter, doStartTagInternal, evaluate, evaluateBoolean, 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 ONFOCUS_ATTRIBUTE
onfocus
' attribute.
public static final String ONBLUR_ATTRIBUTE
onblur
' attribute.
public static final String ONCHANGE_ATTRIBUTE
onchange
' attribute.
public static final String ACCESSKEY_ATTRIBUTE
accesskey
' attribute.
public static final String DISABLED_ATTRIBUTE
disabled
' attribute.
public static final String READONLY_ATTRIBUTE
readonly
' attribute.
Constructor Detail |
---|
public AbstractHtmlInputElementTag()
Method Detail |
---|
public void setOnfocus(String onfocus)
onfocus
' attribute.
May be a runtime expression.
protected String getOnfocus()
onfocus
' attribute.
public void setOnblur(String onblur)
onblur
' attribute.
May be a runtime expression.
protected String getOnblur()
onblur
' attribute.
public void setOnchange(String onchange)
onchange
' attribute.
May be a runtime expression.
protected String getOnchange()
onchange
' attribute.
public void setAccesskey(String accesskey)
accesskey
' attribute.
May be a runtime expression.
protected String getAccesskey()
accesskey
' attribute.
public void setDisabled(String disabled)
disabled
' attribute.
May be a runtime expression.
protected String getDisabled()
disabled
' attribute.
public void setReadonly(String readonly)
readonly
' attribute.
May be a runtime expression.
isReadonly()
protected String getReadonly()
readonly
' attribute.
May be a runtime expression.
isReadonly()
protected void writeOptionalAttributes(TagWriter tagWriter) throws JspException
writeOptionalAttributes
in class AbstractHtmlElementTag
JspException
protected boolean isDisabled() throws JspException
JspException
protected boolean isReadonly() throws JspException
Note: some AbstractHtmlInputElementTag
subclasses (such a those
for checkboxes and radiobuttons) may contain readonly attributes, but are
not affected by them since their values don't change (only their status does.)
JspException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |