|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.web.forms.Field
fc.web.forms.AbstractText
fc.web.forms.TextArea
public final class TextArea
A HTML TextArea
Nested Class Summary | |
---|---|
static class |
TextArea.WrapType
From the HTML spec: OFF disables word wrap. |
Nested classes/interfaces inherited from class fc.web.forms.Field |
---|
Field.Type |
Constructor Summary | |
---|---|
TextArea(java.lang.String name)
Creates a new textarea element with a initial value of "" (the empty string). |
|
TextArea(java.lang.String name,
int rows,
int cols)
Creates a new textarea element with a initial value of "" and the specified rows/cols. |
|
TextArea(java.lang.String name,
java.lang.String value)
Creates a new text element with the specified initial value. |
|
TextArea(java.lang.String name,
java.lang.String value,
int rows,
int cols)
Creates a new text element with the specified initial value and rows/cols. |
Method Summary | |
---|---|
Field.Type |
getType()
Subclasses should return an appropriate Field.Type . |
void |
renderImpl(FormData fd,
java.io.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. |
Methods inherited from class fc.web.forms.AbstractText |
---|
getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getShortValue, getStringValue, getValue, isFilled, reset, setValue, setValue, setValueFromSubmit, toString, trimValues |
Methods inherited from class fc.web.forms.Field |
---|
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextArea(java.lang.String name)
public TextArea(java.lang.String name, int rows, int cols)
public TextArea(java.lang.String name, java.lang.String value)
public TextArea(java.lang.String name, java.lang.String value, int rows, int cols)
Method Detail |
---|
public Field.Type getType()
Field
Field.Type
. This type
is rendered as part of <input type= ...
getType
in class Field
public void renderImpl(FormData fd, java.io.Writer writer) throws java.io.IOException
renderImpl
in class Field
java.io.IOException
public TextArea setCols(int cols)
public TextArea setRows(int rows)
public TextArea setWrap(TextArea.WrapType wrap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |