org.loom.tags.core
Class AbstractTextFieldTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.loom.tags.AbstractTag
          extended by org.loom.tags.AbstractDecoratedTag
              extended by org.loom.tags.AbstractHtmlTag
                  extended by org.loom.tags.AbstractFormFieldTag
                      extended by org.loom.tags.AbstractFormInputTag
                          extended by org.loom.tags.core.AbstractTextFieldTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, FormInputTag, HtmlTag, LoomTag
Direct Known Subclasses:
InputTextAreaTag, InputTextTag

public abstract class AbstractTextFieldTag
extends AbstractFormInputTag

Parent of the InputText and InputTextArea fields


Nested Class Summary
 
Nested classes/interfaces inherited from class org.loom.tags.AbstractFormInputTag
AbstractFormInputTag.LabelPosition
 
Field Summary
protected  java.lang.Integer maxlength
          This is a known attribute for InputTextField and subclasses, as specified here.
protected  java.lang.String pattern
          Regex pattern HTML 5.
protected  java.lang.Boolean readonly
          HTML attribute
 
Fields inherited from class org.loom.tags.AbstractFormInputTag
value
 
Fields inherited from class org.loom.tags.AbstractDecoratedTag
decorator
 
Fields inherited from class org.loom.tags.AbstractTag
expressionLanguageProxy, loomServletRequestFactory, out, repository, request, response
 
Constructor Summary
AbstractTextFieldTag()
           
 
Method Summary
 java.lang.Integer getMaxlength()
           
 java.lang.String getPattern()
           
protected  void printParentAttributes()
          Prints this instance attributes
 void setMaxlength(java.lang.Integer maxLength)
           
 void setMinlength(java.lang.Integer minLength)
           
 void setPattern(java.util.regex.Pattern maskPattern)
           
 void setPattern(java.lang.String pattern)
           
 void setReadonly(java.lang.Boolean readonly)
           
 
Methods inherited from class org.loom.tags.AbstractFormInputTag
getLabelCssClass, getLabelPosition, getRenderAsText, getRenderLabel, getTranslatedLabel, getValidators, getValue, hasError, initTag, isBound, isEscapeHTML, isTranslateLabel, renderAsText, setAddTranslatedName, setBound, setEscapeHTML, setLabelClass, setLabelPos, setLabelPosition, setRenderAsText, setRenderErrorDisplayComponent, setRenderLabel, setTranslateLabel, setValue, shouldRenderAsText, shouldRenderError, shouldRenderLabel
 
Methods inherited from class org.loom.tags.AbstractFormFieldTag
getForm, getHelpLine, getLabel, getNormalizedName, getTabindex, isDisabled, setAlt, setDisabled, setForm, setHelpLine, setLabel, setName, setTabindex, setType
 
Methods inherited from class org.loom.tags.AbstractHtmlTag
addCssClass, getAccesskey, getCssBuilder, getCssClass, getDir, getId, getLang, getName, getStyle, getTitle, getTranslatedTitle, identify, isCssProcessed, isIf, isTranslateTitle, renderTag, setAccesskey, setCssClass, setCssProcessed, setDir, setId, setIf, setLang, setStyle, setTitle, setTranslateTitle
 
Methods inherited from class org.loom.tags.AbstractDecoratedTag
doTag, getDecorator, getDecoratorInstance, setDecorator
 
Methods inherited from class org.loom.tags.AbstractTag
createWriterWrapper, doBody, doBufferedBody, doTagImpl, endTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setRequest, setResponse, setScopedAttribute, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.loom.tags.HtmlTag
addCssClass, getCssBuilder
 
Methods inherited from interface org.loom.tags.LoomTag
getExtendedAttributes, getRequest, getScopedAttribute, setExtendedAttribute, setScopedAttribute
 

Field Detail

maxlength

@Attribute
protected java.lang.Integer maxlength
This is a known attribute for InputTextField and subclasses, as specified here. In the case of pre-HTML5 InputTextArea, it should be enforced using javascript.


readonly

@Attribute
protected java.lang.Boolean readonly
HTML attribute


pattern

@Attribute
protected java.lang.String pattern
Regex pattern HTML 5. Note that we will be using the regular expression as introduced by the developer, not modifying it as the spec requires us to.

Constructor Detail

AbstractTextFieldTag

public AbstractTextFieldTag()
Method Detail

printParentAttributes

protected void printParentAttributes()
                              throws java.io.IOException,
                                     javax.servlet.jsp.JspException
Prints this instance attributes

Overrides:
printParentAttributes in class AbstractFormInputTag
Throws:
java.io.IOException
javax.servlet.jsp.JspException

setMaxlength

public void setMaxlength(java.lang.Integer maxLength)

setReadonly

public void setReadonly(java.lang.Boolean readonly)

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String pattern)

setPattern

public void setPattern(java.util.regex.Pattern maskPattern)

setMinlength

public void setMinlength(java.lang.Integer minLength)

getMaxlength

public java.lang.Integer getMaxlength()