|
||||||||||
| 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
net.sf.springlayout.web.layout.taglib.LayoutBindTag
net.sf.springlayout.web.layout.taglib.AbstractFieldTag
net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag
public abstract class AbstractHtmlAttributesTag
Class to contain HTML attributes common to all tags.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_ATTRIBUTE
The name of the ' class' attribute. |
protected java.lang.String |
cssErrorClass
The value of the ' class' attribute applied when an there is a validation
error. |
static java.lang.String |
DIR_ATTRIBUTE
The name of the ' dir' attribute. |
static java.lang.String |
LANG_ATTRIBUTE
The name of the ' lang' attribute. |
protected java.lang.String |
mode
The ' mode' which this tag should operated in. |
static java.lang.String |
ONCHANGE_ATTRIBUTE
The name of the ' onchange' attribute. |
static java.lang.String |
ONCLICK_ATTRIBUTE
The name of the ' onclick' attribute. |
static java.lang.String |
ONDBLCLICK_ATTRIBUTE
The name of the ' ondblclick' attribute. |
static java.lang.String |
ONKEYDOWN_ATTRIBUTE
The name of the ' onkeydown' attribute. |
static java.lang.String |
ONKEYPRESS_ATTRIBUTE
The name of the ' onkeypress' attribute. |
static java.lang.String |
ONKEYUP_ATTRIBUTE
The name of the ' onkeyup' attribute. |
static java.lang.String |
ONMOUSEDOWN_ATTRIBUTE
The name of the ' onmousedown' attribute. |
static java.lang.String |
ONMOUSEMOVE_ATTRIBUTE
The name of the ' onmousemove' attribute. |
static java.lang.String |
ONMOUSEOUT_ATTRIBUTE
The name of the ' onmouseout' attribute. |
static java.lang.String |
ONMOUSEOVER_ATTRIBUTE
The name of the ' onmouseover' attribute. |
static java.lang.String |
ONMOUSEUP_ATTRIBUTE
The name of the ' onmouseup' attribute. |
protected java.util.Map |
prependMap
The Map of attribute names to values which should be prepended when building the common htmlAttributes. |
static java.lang.String |
STYLE_ATTRIBUTE
The name of the ' style' attribute. |
static java.lang.String |
TABINDEX_ATTRIBUTE
The name of the ' tabindex' attribute. |
static java.lang.String |
TITLE_ATTRIBUTE
The name of the ' title' attribute. |
| Fields inherited from class net.sf.springlayout.web.layout.taglib.AbstractFieldTag |
|---|
config, emptyDisplayString, fieldInstance |
| Fields inherited from class net.sf.springlayout.web.layout.taglib.LayoutBindTag |
|---|
ignoreNestedPath, path, pathIfNestedNull, previousStatus, status |
| Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
|---|
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, 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 | |
|---|---|
AbstractHtmlAttributesTag()
No arg constructor which builds a new hashMap for prepending HTML attributes. |
|
| Method Summary | |
|---|---|
protected void |
appendAllApplicableCssClasses(java.lang.StringBuffer cssBuffer,
boolean readonly)
Appends the appropriate CssClasses to the tag, this includes base class for the field type, mandatory and error classes if appropriate |
protected void |
appendAttribute(java.lang.StringBuffer attributeBuffer,
java.lang.String attributeName,
java.lang.String attributeValue)
Convenience method to append the attribute name value pair to the StringBuffer
provided. |
void |
appendCommonHtmlAttributes(java.lang.StringBuffer attributeBuffer)
Appends the general HTML Attributes available to all Tags to the StringBuffer provided. |
int |
doFieldStartTag()
Called in sub classes |
protected abstract java.lang.String |
getBaseCssClass()
|
java.lang.String |
getCssClass()
|
protected boolean |
isDisabled()
|
void |
setCssClass(java.lang.String cssClass)
Sets the cssClass for this AbstractFieldTag. |
void |
setCssErrorClass(java.lang.String cssErrorClass)
Sets the cssErrorClass for this AbstractFieldTag. |
void |
setCssStyle(java.lang.String cssStyle)
Sets the cssStyle for this AbstractFieldTag. |
void |
setDir(java.lang.String dir)
Sets the dir for this AbstractFieldTag. |
void |
setLang(java.lang.String lang)
Sets the lang for this AbstractFieldTag. |
void |
setMode(java.lang.String mode)
Sets the mode for this AbstractHtmlAttributesTag. |
void |
setOnchange(java.lang.String onchange)
Sets the onchange for this AbstractHtmlInputAttributesTag. |
void |
setOnclick(java.lang.String onclick)
Sets the onclick for this AbstractFieldTag. |
void |
setOndblclick(java.lang.String ondblclick)
Sets the ondblclick for this AbstractFieldTag. |
void |
setOnkeydown(java.lang.String onkeydown)
Sets the onkeydown for this AbstractFieldTag. |
void |
setOnkeypress(java.lang.String onkeypress)
Sets the onkeypress for this AbstractFieldTag. |
void |
setOnkeyup(java.lang.String onkeyup)
Sets the onkeyup for this AbstractFieldTag. |
void |
setOnmousedown(java.lang.String onmousedown)
Sets the onmousedown for this AbstractFieldTag. |
void |
setOnmousemove(java.lang.String onmousemove)
Sets the onmousemove for this AbstractFieldTag. |
void |
setOnmouseout(java.lang.String onmouseout)
Sets the onmouseout for this AbstractFieldTag. |
void |
setOnmouseover(java.lang.String onmouseover)
Sets the onmouseover for this AbstractFieldTag. |
void |
setOnmouseup(java.lang.String onmouseup)
Sets the onmouseup for this AbstractFieldTag. |
void |
setTabindex(java.lang.String tabindex)
Sets the tabindex for this AbstractFieldTag. |
void |
setTitle(java.lang.String title)
Sets the title for this AbstractFieldTag. |
| Methods inherited from class net.sf.springlayout.web.layout.taglib.AbstractFieldTag |
|---|
addToFieldSet, appendEditModeOutput, appendReadOnlyOutput, doStartTagInternal, getFieldDefinition, getGroupSize, getOutput, getWrappedCommand, isGroupedField, setEmptyDisplayString, setOutput |
| Methods inherited from class net.sf.springlayout.web.layout.taglib.LayoutBindTag |
|---|
doEndTag, doFinally, getEditor, getErrors, getPath, getProperty, isIgnoreNestedPath, setIgnoreNestedPath, setPath |
| 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, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map prependMap
public static final java.lang.String CLASS_ATTRIBUTE
class' attribute.
public static final java.lang.String STYLE_ATTRIBUTE
style' attribute.
public static final java.lang.String LANG_ATTRIBUTE
lang' attribute.
public static final java.lang.String TITLE_ATTRIBUTE
title' attribute.
public static final java.lang.String DIR_ATTRIBUTE
dir' attribute.
public static final java.lang.String TABINDEX_ATTRIBUTE
tabindex' attribute.
public static final java.lang.String ONCLICK_ATTRIBUTE
onclick' attribute.
public static final java.lang.String ONCHANGE_ATTRIBUTE
onchange' attribute.
public static final java.lang.String ONDBLCLICK_ATTRIBUTE
ondblclick' attribute.
public static final java.lang.String ONMOUSEDOWN_ATTRIBUTE
onmousedown' attribute.
public static final java.lang.String ONMOUSEUP_ATTRIBUTE
onmouseup' attribute.
public static final java.lang.String ONMOUSEOVER_ATTRIBUTE
onmouseover' attribute.
public static final java.lang.String ONMOUSEMOVE_ATTRIBUTE
onmousemove' attribute.
public static final java.lang.String ONMOUSEOUT_ATTRIBUTE
onmouseout' attribute.
public static final java.lang.String ONKEYPRESS_ATTRIBUTE
onkeypress' attribute.
public static final java.lang.String ONKEYUP_ATTRIBUTE
onkeyup' attribute.
public static final java.lang.String ONKEYDOWN_ATTRIBUTE
onkeydown' attribute.
protected java.lang.String cssErrorClass
class' attribute applied when an there is a validation
error.
protected java.lang.String mode
mode' which this tag should operated in. If unset will operate in Read
or Edit depending on the value in the request parameter. If over-ridden here the tag will
always function in the mode specified no matter what mode is requested by the page.
| Constructor Detail |
|---|
public AbstractHtmlAttributesTag()
| Method Detail |
|---|
public void setCssClass(java.lang.String cssClass)
cssClass - Sets the cssClass for this AbstractFieldTag.public void setCssErrorClass(java.lang.String cssErrorClass)
cssErrorClass - Sets the cssErrorClass for this AbstractFieldTag.public void setCssStyle(java.lang.String cssStyle)
cssStyle - Sets the cssStyle for this AbstractFieldTag.public void setDir(java.lang.String dir)
dir - Sets the dir for this AbstractFieldTag.public void setLang(java.lang.String lang)
lang - Sets the lang for this AbstractFieldTag.public void setOnclick(java.lang.String onclick)
onclick - Sets the onclick for this AbstractFieldTag.public void setOnchange(java.lang.String onchange)
onchange - The onchange for this AbstractHtmlInputAttributesTag.public void setOndblclick(java.lang.String ondblclick)
ondblclick - Sets the ondblclick for this AbstractFieldTag.public void setOnkeydown(java.lang.String onkeydown)
onkeydown - Sets the onkeydown for this AbstractFieldTag.public void setOnkeypress(java.lang.String onkeypress)
onkeypress - Sets the onkeypress for this AbstractFieldTag.public void setOnkeyup(java.lang.String onkeyup)
onkeyup - Sets the onkeyup for this AbstractFieldTag.public void setOnmousedown(java.lang.String onmousedown)
onmousedown - Sets the onmousedown for this AbstractFieldTag.public void setOnmousemove(java.lang.String onmousemove)
onmousemove - Sets the onmousemove for this AbstractFieldTag.public void setOnmouseout(java.lang.String onmouseout)
onmouseout - Sets the onmouseout for this AbstractFieldTag.public void setOnmouseover(java.lang.String onmouseover)
onmouseover - Sets the onmouseover for this AbstractFieldTag.public void setOnmouseup(java.lang.String onmouseup)
onmouseup - Sets the onmouseup for this AbstractFieldTag.public void setTabindex(java.lang.String tabindex)
tabindex - Sets the tabindex for this AbstractFieldTag.public void setMode(java.lang.String mode)
mode - Sets the mode for this AbstractHtmlAttributesTag.public void setTitle(java.lang.String title)
title - Sets the title for this AbstractFieldTag.
public int doFieldStartTag()
throws javax.servlet.jsp.JspTagException
AbstractFieldTag
doFieldStartTag in class AbstractFieldTagjavax.servlet.jsp.JspTagExceptionpublic void appendCommonHtmlAttributes(java.lang.StringBuffer attributeBuffer)
attributeBuffer - the StringBuffer to append the HTML Attributes to.
protected void appendAttribute(java.lang.StringBuffer attributeBuffer,
java.lang.String attributeName,
java.lang.String attributeValue)
StringBuffer
provided.
attributeBuffer - StringBuffer to append the name value pair to.attributeName - name to appendattributeValue - value to appendprotected abstract java.lang.String getBaseCssClass()
protected void appendAllApplicableCssClasses(java.lang.StringBuffer cssBuffer,
boolean readonly)
cssBuffer - stringBuffer to append classes toreadonly - indicates if the field is currently in readonly mode.public java.lang.String getCssClass()
protected boolean isDisabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||