public abstract class AbstractTextField<T> extends AbstractField<T>
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoCapitalize |
static String |
copyright |
protected boolean |
labelPlaceholder |
protected Integer |
maxLength |
protected boolean |
replaceBadUnicodeCharacters |
protected Integer |
size |
protected String |
stringValue |
accessor, bulkCheckboxName, bulkChecked, colSpan, COPYRIGHT, EDITABLE_FIELD_CSS_CLASS, elementsConfiguration, enabled, errors, fieldCssClass, forceNewRow, FORM_LABEL_CSS_CLASS, help, href, id, INPUT_CONTAINER_CSS_CLASS, inputName, insertable, label, logger, mode, required, STATIC_VALUE_CSS_CLASS, title, updatable
Constructor and Description |
---|
AbstractTextField(PropertyAccessor accessor,
Mode mode) |
AbstractTextField(PropertyAccessor accessor,
Mode mode,
String prefix) |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxLength() |
Integer |
getSize() |
String |
getStringValue() |
boolean |
isAutoCapitalize() |
boolean |
isLabelPlaceholder() |
boolean |
isReplaceBadUnicodeCharacters() |
void |
labelToXhtml(XhtmlBuffer xb) |
void |
setAutoCapitalize(boolean autoCapitalize) |
void |
setLabelPlaceholder(boolean labelPlaceholder) |
void |
setMaxLength(Integer maxLength) |
void |
setReplaceBadUnicodeCharacters(boolean replaceBadUnicodeCharacters) |
void |
setSize(Integer size) |
void |
setStringValue(String stringValue) |
boolean |
validate() |
void |
valueToXhtml(XhtmlBuffer xb) |
protected void |
valueToXhtmlEdit(XhtmlBuffer xb) |
protected void |
valueToXhtmlPreview(XhtmlBuffer xb) |
protected void |
valueToXhtmlView(XhtmlBuffer xb) |
closeVisibleField, errorsToXhtml, getColSpan, getDisplayValue, getErrors, getFieldCssClass, getHelp, getHref, getId, getInputName, getLabel, getMode, getPropertyAccessor, getText, getTitle, hasRequiredFields, helpToXhtml, isBlank, isEnabled, isForceNewRow, isInsertable, isReadOnly, isRequired, isUpdatable, isValid, maybeConvertValue, openVisibleField, readFrom, readFromObject, readFromRequest, setColSpan, setEnabled, setErrors, setFieldCssClass, setForceNewRow, setHelp, setHref, setId, setInputName, setInsertable, setLabel, setRequired, setTitle, setUpdatable, toXhtml, writeTo, writeToObject, writeToObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeToObject
public static final String copyright
protected String stringValue
protected boolean autoCapitalize
protected boolean replaceBadUnicodeCharacters
protected Integer maxLength
protected boolean labelPlaceholder
protected Integer size
public AbstractTextField(PropertyAccessor accessor, Mode mode)
public AbstractTextField(PropertyAccessor accessor, Mode mode, String prefix)
public boolean validate()
public void labelToXhtml(XhtmlBuffer xb)
labelToXhtml
in interface Field<T>
labelToXhtml
in class AbstractField<T>
public void valueToXhtml(XhtmlBuffer xb)
protected void valueToXhtmlEdit(XhtmlBuffer xb)
protected void valueToXhtmlPreview(XhtmlBuffer xb)
protected void valueToXhtmlView(XhtmlBuffer xb)
public String getStringValue()
public void setStringValue(String stringValue)
public boolean isAutoCapitalize()
public void setAutoCapitalize(boolean autoCapitalize)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
public Integer getSize()
public void setSize(Integer size)
public boolean isReplaceBadUnicodeCharacters()
public void setReplaceBadUnicodeCharacters(boolean replaceBadUnicodeCharacters)
public boolean isLabelPlaceholder()
public void setLabelPlaceholder(boolean labelPlaceholder)