public final class TextArea extends AbstractText
Modifier and Type | Class and Description |
---|---|
static class |
TextArea.WrapType
From the HTML spec:
OFF disables word wrap. |
Field.Type
Constructor and Description |
---|
TextArea(String name)
Creates a new textarea element with a initial value of "" (the
empty string).
|
TextArea(String name,
int rows,
int cols)
Creates a new textarea element with a initial value of "" and
the specified rows/cols.
|
TextArea(String name,
String value)
Creates a new text element with the specified initial value.
|
TextArea(String name,
String value,
int rows,
int cols)
Creates a new text element with the specified initial value
and rows/cols.
|
Modifier and Type | Method and Description |
---|---|
Field.Type |
getType()
Subclasses should return an appropriate
Field.Type . |
void |
renderImpl(FormData fd,
Writer writer) |
TextArea |
setCols(int cols)
This value (if set) is rendered as the html COLS tag.
|
TextArea |
setRows(int rows)
This value (if set) is rendered as the html ROWS tag.
|
TextArea |
setWrap(TextArea.WrapType wrap)
Sets the wrapping mode of this text box.
|
getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getShortValue, getStringValue, getValue, isFilled, reset, setValue, setValue, setValueFromSubmit, toString, trimValues
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate
public TextArea(String name)
public TextArea(String name, int rows, int cols)
public TextArea(String name, String value)
public Field.Type getType()
Field
Field.Type
. This type
is rendered as part of <input type= ...public void renderImpl(FormData fd, Writer writer) throws IOException
renderImpl
in class Field
IOException
public TextArea setCols(int cols)
public TextArea setRows(int rows)
public TextArea setWrap(TextArea.WrapType wrap)