net.sf.springlayout.web.layout.taglib
Class AbstractHtmlInputAttributesTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.springframework.web.servlet.tags.RequestContextAwareTag
          extended by org.springframework.web.servlet.tags.HtmlEscapingAwareTag
              extended by net.sf.springlayout.web.layout.taglib.LayoutBindTag
                  extended by net.sf.springlayout.web.layout.taglib.AbstractFieldTag
                      extended by net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag
                          extended by net.sf.springlayout.web.layout.taglib.AbstractHtmlInputAttributesTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
AbstractFieldGroupTag, AutoCompleteFieldTag, CheckboxTrueFalseTag, InputFieldTag, SelectFieldTag, TextAreaFieldTag

public abstract class AbstractHtmlInputAttributesTag
extends AbstractHtmlAttributesTag

Class to contain HTML attributes comon to all input tags, this includes selects and textareas

Author:
Adam Boas
See Also:
Serialized Form

Field Summary
static java.lang.String ACCESSKEY_ATTRIBUTE
          The name of the 'accesskey' attribute.
protected  java.lang.String disabled
          The value of the 'disabled' attribute.
static java.lang.String DISABLED_ATTRIBUTE
          The name of the 'disabled' attribute.
static java.lang.String ONBLUR_ATTRIBUTE
          The name of the 'onblur' attribute.
static java.lang.String ONFOCUS_ATTRIBUTE
          The name of the 'onfocus' attribute.
 
Fields inherited from class net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag
CLASS_ATTRIBUTE, cssErrorClass, DIR_ATTRIBUTE, LANG_ATTRIBUTE, mode, ONCHANGE_ATTRIBUTE, ONCLICK_ATTRIBUTE, ONDBLCLICK_ATTRIBUTE, ONKEYDOWN_ATTRIBUTE, ONKEYPRESS_ATTRIBUTE, ONKEYUP_ATTRIBUTE, ONMOUSEDOWN_ATTRIBUTE, ONMOUSEMOVE_ATTRIBUTE, ONMOUSEOUT_ATTRIBUTE, ONMOUSEOVER_ATTRIBUTE, ONMOUSEUP_ATTRIBUTE, prependMap, STYLE_ATTRIBUTE, TABINDEX_ATTRIBUTE, 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
AbstractHtmlInputAttributesTag()
           
 
Method Summary
protected  void addToFieldSet(FieldDefinition fieldDefinition, OnPageFieldInstance fieldInstance)
          Adds this OnPageFieldInstance to the appropriate set in the fieldDefinition
 void appendCommonHtmlAttributes(java.lang.StringBuffer attributeBuffer)
          Appends the general HTML Attributes available to all Tags to the StringBuffer provided.
protected  void appendContextSensitiveHelp(java.lang.StringBuffer outputBuffer, java.lang.String confirmedPath)
          Returns a string containing HTML for rendering a help icon/control.
 int doFieldStartTag()
          Called in sub classes
protected  java.lang.String getHelpMessage()
           
protected  boolean isDisabled()
           
 void setAccesskey(java.lang.String accesskey)
          Sets the accesskey for this AbstractHtmlInputAttributesTag.
 void setDisabled(java.lang.String disabled)
          Sets the disabled for this AbstractHtmlInputAttributesTag.
 void setHelpMessage(java.lang.String helpMessage)
          Sets the helpMessage for this AbstractHtmlInputAttributesTag.
 void setHelpMessageKey(java.lang.String helpMessageKey)
          Sets the helpMessageKey for this AbstractHtmlInputAttributesTag.
 void setOnblur(java.lang.String onblur)
          Sets the onblur for this AbstractHtmlInputAttributesTag.
 void setOnfocus(java.lang.String onfocus)
          Sets the onfocus for this AbstractHtmlInputAttributesTag.
 
Methods inherited from class net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag
appendAllApplicableCssClasses, appendAttribute, getBaseCssClass, getCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setLang, setMode, setOnchange, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle
 
Methods inherited from class net.sf.springlayout.web.layout.taglib.AbstractFieldTag
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

ONFOCUS_ATTRIBUTE

public static final java.lang.String ONFOCUS_ATTRIBUTE
The name of the 'onfocus' attribute.

See Also:
Constant Field Values

ONBLUR_ATTRIBUTE

public static final java.lang.String ONBLUR_ATTRIBUTE
The name of the 'onblur' attribute.

See Also:
Constant Field Values

ACCESSKEY_ATTRIBUTE

public static final java.lang.String ACCESSKEY_ATTRIBUTE
The name of the 'accesskey' attribute.

See Also:
Constant Field Values

DISABLED_ATTRIBUTE

public static final java.lang.String DISABLED_ATTRIBUTE
The name of the 'disabled' attribute.

See Also:
Constant Field Values

disabled

protected java.lang.String disabled
The value of the 'disabled' attribute.

Constructor Detail

AbstractHtmlInputAttributesTag

public AbstractHtmlInputAttributesTag()
Method Detail

getHelpMessage

protected java.lang.String getHelpMessage()
Returns:
the help message for this control, either from the message key or the message itself. Returns an empty string if no message set.

setHelpMessage

public void setHelpMessage(java.lang.String helpMessage)
Sets the helpMessage for this AbstractHtmlInputAttributesTag.

Parameters:
helpMessage - Sets the helpMessage for this AbstractHtmlInputAttributesTag.

setHelpMessageKey

public void setHelpMessageKey(java.lang.String helpMessageKey)
Sets the helpMessageKey for this AbstractHtmlInputAttributesTag.

Parameters:
helpMessageKey - Sets the helpMessageKey for this AbstractHtmlInputAttributesTag.

setAccesskey

public void setAccesskey(java.lang.String accesskey)
Sets the accesskey for this AbstractHtmlInputAttributesTag.

Parameters:
accesskey - The accesskey for this AbstractHtmlInputAttributesTag.

setDisabled

public void setDisabled(java.lang.String disabled)
Sets the disabled for this AbstractHtmlInputAttributesTag.

Parameters:
disabled - The disabled for this AbstractHtmlInputAttributesTag.

setOnblur

public void setOnblur(java.lang.String onblur)
Sets the onblur for this AbstractHtmlInputAttributesTag.

Parameters:
onblur - The onblur for this AbstractHtmlInputAttributesTag.

setOnfocus

public void setOnfocus(java.lang.String onfocus)
Sets the onfocus for this AbstractHtmlInputAttributesTag.

Parameters:
onfocus - The onfocus for this AbstractHtmlInputAttributesTag.

doFieldStartTag

public int doFieldStartTag()
                    throws javax.servlet.jsp.JspTagException
Description copied from class: AbstractFieldTag
Called in sub classes

Overrides:
doFieldStartTag in class AbstractHtmlAttributesTag
Returns:
Throws:
javax.servlet.jsp.JspTagException

appendCommonHtmlAttributes

public void appendCommonHtmlAttributes(java.lang.StringBuffer attributeBuffer)
Description copied from class: AbstractHtmlAttributesTag
Appends the general HTML Attributes available to all Tags to the StringBuffer provided.

Overrides:
appendCommonHtmlAttributes in class AbstractHtmlAttributesTag
Parameters:
attributeBuffer - the StringBuffer to append the HTML Attributes to.

appendContextSensitiveHelp

protected void appendContextSensitiveHelp(java.lang.StringBuffer outputBuffer,
                                          java.lang.String confirmedPath)
Returns a string containing HTML for rendering a help icon/control.

Parameters:
outputBuffer - buffer to append HTML icon/control to
confirmedPath - path of the control this help is regarding

addToFieldSet

protected void addToFieldSet(FieldDefinition fieldDefinition,
                             OnPageFieldInstance fieldInstance)
Description copied from class: AbstractFieldTag
Adds this OnPageFieldInstance to the appropriate set in the fieldDefinition

Specified by:
addToFieldSet in class AbstractFieldTag

isDisabled

protected boolean isDisabled()
Overrides:
isDisabled in class AbstractHtmlAttributesTag


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.