public class TextField extends AbstractTextField<String>
Modifier and Type | Field and Description |
---|---|
protected String[] |
amber |
static String |
copyright |
protected String[] |
green |
protected boolean |
highlightLinks |
protected boolean |
multiline |
protected String |
noValueText |
protected String[] |
red |
protected boolean |
richText |
protected int |
textAreaMinRows |
protected Integer |
textAreaWidth |
autoCapitalize, labelPlaceholder, maxLength, replaceBadUnicodeCharacters, size, 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 |
---|
TextField(PropertyAccessor accessor,
Mode mode) |
TextField(PropertyAccessor accessor,
Mode mode,
String prefix) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayValue() |
String |
getNoValueText() |
int |
getTextAreaMinRows() |
Integer |
getTextAreaWidth() |
String |
getValue() |
boolean |
isHighlightLinks() |
boolean |
isMultiline() |
boolean |
isRichText() |
void |
readFromObject(Object obj) |
void |
readFromRequest(HttpServletRequest req) |
void |
setHighlightLinks(boolean highlightLinks) |
void |
setMultiline(boolean multiline) |
void |
setNoValueText(String noValueText) |
void |
setRichText(boolean richText) |
void |
setTextAreaMinRows(int textAreaMinRows) |
void |
setTextAreaWidth(Integer textAreaWidth) |
void |
setValue(String value) |
protected void |
valueToXhtmlEdit(XhtmlBuffer xb) |
protected void |
valueToXhtmlPreview(XhtmlBuffer xb) |
protected void |
valueToXhtmlView(XhtmlBuffer xb) |
void |
writeToObject(Object obj) |
getMaxLength, getSize, getStringValue, isAutoCapitalize, isLabelPlaceholder, isReplaceBadUnicodeCharacters, labelToXhtml, setAutoCapitalize, setLabelPlaceholder, setMaxLength, setReplaceBadUnicodeCharacters, setSize, setStringValue, validate, valueToXhtml
closeVisibleField, errorsToXhtml, getColSpan, getErrors, getFieldCssClass, getHelp, getHref, getId, getInputName, getLabel, getMode, getPropertyAccessor, getText, getTitle, hasRequiredFields, helpToXhtml, isBlank, isEnabled, isForceNewRow, isInsertable, isReadOnly, isRequired, isUpdatable, isValid, maybeConvertValue, openVisibleField, readFrom, setColSpan, setEnabled, setErrors, setFieldCssClass, setForceNewRow, setHelp, setHref, setId, setInputName, setInsertable, setLabel, setRequired, setTitle, setUpdatable, toXhtml, writeTo, writeToObject, writeToObject
public static final String copyright
protected boolean highlightLinks
protected boolean multiline
protected boolean richText
protected Integer textAreaWidth
protected int textAreaMinRows
protected String[] red
protected String[] amber
protected String[] green
protected String noValueText
public TextField(PropertyAccessor accessor, Mode mode)
public TextField(PropertyAccessor accessor, Mode mode, String prefix)
public void readFromRequest(HttpServletRequest req)
readFromRequest
in interface Element
readFromRequest
in class AbstractField<String>
public void readFromObject(Object obj)
readFromObject
in interface Element
readFromObject
in class AbstractField<String>
public void writeToObject(Object obj)
protected void valueToXhtmlEdit(XhtmlBuffer xb)
valueToXhtmlEdit
in class AbstractTextField<String>
protected void valueToXhtmlPreview(XhtmlBuffer xb)
valueToXhtmlPreview
in class AbstractTextField<String>
protected void valueToXhtmlView(XhtmlBuffer xb)
valueToXhtmlView
in class AbstractTextField<String>
public String getDisplayValue()
getDisplayValue
in interface Field<String>
getDisplayValue
in class AbstractField<String>
public String getValue()
public void setValue(String value)
public boolean isHighlightLinks()
public void setHighlightLinks(boolean highlightLinks)
public boolean isMultiline()
public void setMultiline(boolean multiline)
public boolean isRichText()
public void setRichText(boolean richText)
public Integer getTextAreaWidth()
public void setTextAreaWidth(Integer textAreaWidth)
public int getTextAreaMinRows()
public void setTextAreaMinRows(int textAreaMinRows)
public String getNoValueText()
public void setNoValueText(String noValueText)