|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.AbstractDecoratedTag
org.loom.tags.AbstractHtmlTag
org.loom.tags.AbstractFormFieldTag
org.loom.tags.AbstractFormInputTag
public abstract class AbstractFormInputTag
Parent class for any form field associated to a form input parameter. Docs about the HTML fields can be found here
| Nested Class Summary | |
|---|---|
static class |
AbstractFormInputTag.LabelPosition
|
| Field Summary | |
|---|---|
protected java.lang.String |
value
when specified, use this value instead of the action property 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 | |
|---|---|
AbstractFormInputTag()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getLabelCssClass()
As of #LOOM-95, modified to propagate all the applied CSS classes to the surrounding label |
AbstractFormInputTag.LabelPosition |
getLabelPosition()
|
protected java.lang.Boolean |
getRenderAsText()
|
protected java.lang.Boolean |
getRenderLabel()
|
java.lang.String |
getTranslatedLabel()
|
protected java.util.Set<PropertyValidator> |
getValidators()
Lazily initializes the list of Validators asociated to this field. |
java.lang.String |
getValue()
Calculates this tag value. |
boolean |
hasError()
|
protected void |
initTag()
Initializes the tag attributes |
boolean |
isBound()
|
boolean |
isEscapeHTML()
|
boolean |
isTranslateLabel()
|
protected void |
printParentAttributes()
Prints this instance attributes |
java.lang.String |
renderAsText()
Gets this item value as String, to show when renderAsText is true By default, it returns the tag value |
void |
setAddTranslatedName(boolean addTranslatedName)
|
void |
setBound(boolean bound)
|
void |
setEscapeHTML(boolean escapeRenderAsText)
|
void |
setLabelClass(java.lang.String labelClass)
CSS styles to be applied to the surrounding label but not to the input component. |
void |
setLabelPos(java.lang.String labelPosition)
Position of the label for this field. |
protected void |
setLabelPosition(AbstractFormInputTag.LabelPosition position)
|
void |
setRenderAsText(java.lang.Boolean renderAsText)
|
void |
setRenderErrorDisplayComponent(java.lang.Boolean renderError)
|
void |
setRenderLabel(java.lang.Boolean renderLabel)
|
void |
setTranslateLabel(boolean translateLabel)
|
void |
setValue(java.lang.String value)
|
boolean |
shouldRenderAsText()
|
boolean |
shouldRenderError()
|
boolean |
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 |
|---|
@Attribute protected java.lang.String value
| Constructor Detail |
|---|
public AbstractFormInputTag()
| Method Detail |
|---|
protected void initTag()
AbstractTag
initTag in class AbstractFormFieldTag
protected void printParentAttributes()
throws java.io.IOException,
javax.servlet.jsp.JspException
AbstractFormFieldTag
printParentAttributes in class AbstractFormFieldTagjava.io.IOException
javax.servlet.jsp.JspExceptionpublic java.lang.String getTranslatedLabel()
public java.lang.String getValue()
public java.lang.String renderAsText()
public boolean hasError()
protected java.util.Set<PropertyValidator> getValidators()
public java.lang.String getLabelCssClass()
public void setRenderLabel(java.lang.Boolean renderLabel)
public void setRenderErrorDisplayComponent(java.lang.Boolean renderError)
public boolean shouldRenderLabel()
public boolean shouldRenderAsText()
public boolean shouldRenderError()
public void setValue(java.lang.String value)
public AbstractFormInputTag.LabelPosition getLabelPosition()
@Attribute public void setLabelPos(java.lang.String labelPosition)
protected void setLabelPosition(AbstractFormInputTag.LabelPosition position)
public void setRenderAsText(java.lang.Boolean renderAsText)
public boolean isTranslateLabel()
public void setTranslateLabel(boolean translateLabel)
public void setAddTranslatedName(boolean addTranslatedName)
public boolean isEscapeHTML()
public void setEscapeHTML(boolean escapeRenderAsText)
protected java.lang.Boolean getRenderLabel()
protected java.lang.Boolean getRenderAsText()
@Attribute public void setLabelClass(java.lang.String labelClass)
public boolean isBound()
public void setBound(boolean bound)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||