public abstract class AbstractInput<T extends FormCheckerElement> extends Object implements FormCheckerElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
desc |
protected TagAttributes |
inputAttributes |
protected String |
name |
protected String |
preSetValue |
protected int |
size |
protected String |
value |
| Constructor and Description |
|---|
AbstractInput() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputTag, getTypeprotected String name
protected String value
protected String desc
protected String preSetValue
protected int size
protected TagAttributes inputAttributes
public ValidationResult getValidationResult()
getValidationResult in interface FormCheckerElementpublic void setValidationResult(ValidationResult validationResult)
setValidationResult in interface FormCheckerElementprotected String buildAllAttributes(TagAttributes tagAttributes)
public void addCriteria(Criterion c)
protected String buildRequiredAttribute()
public String getInputTag()
getInputTag in interface FormCheckerElementpublic int getLastTabIndex()
getLastTabIndex in interface FormCheckerElementpublic void setFormChecker(FormChecker fc)
setFormChecker in interface FormCheckerElementpublic String getValueHtmlEncoded()
getValueHtmlEncoded in interface FormCheckerElementpublic void setInvalid()
setInvalid in interface FormCheckerElementpublic void init(Request request, boolean firstRun, Validator validator)
init in interface FormCheckerElementpublic T setRequired()
setRequired in interface FormCheckerElementpublic String getLabel()
getLabel in interface FormCheckerElementpublic String getPreSetValue()
getPreSetValue in interface FormCheckerElementpublic T setPreSetValue(String preSetValue)
setPreSetValue in interface FormCheckerElementpublic String getCompleteInput()
getCompleteInput in interface FormCheckerElementpublic String buildMaxLen()
public String getName()
getName in interface FormCheckerElementpublic String getValue()
getValue in interface FormCheckerElementpublic void setValue(String value)
setValue in interface FormCheckerElementpublic T setDescription(String desc)
setDescription in interface FormCheckerElementpublic void changeDescription(String desc)
changeDescription in interface FormCheckerElementpublic String getDescription()
getDescription in interface FormCheckerElementpublic boolean isValid()
isValid in interface FormCheckerElementpublic boolean isRequired()
isRequired in interface FormCheckerElementprotected String getElementId()
public int getTabIndex()
getTabIndex in interface FormCheckerElementpublic String getTabIndexTag()
public String getTabIndexTagIncreaseBy(int addition)
public T setTabIndex(int tabIndex)
setTabIndex in interface FormCheckerElementpublic List<Criterion> getCriteria()
getCriteria in interface FormCheckerElementpublic String getHelpText()
getHelpText in interface FormCheckerElementpublic T setSize(int size)
setSize in interface FormCheckerElementpublic void setName(String name)
setName in interface FormCheckerElementpublic void setInputAttributes(TagAttributes inputAttributes)
Copyright © 2017. All rights reserved.