Class TextArea
java.lang.Object
fc.web.forms.Field
fc.web.forms.AbstractText
fc.web.forms.TextArea
A HTML TextArea
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFrom the HTML spec:
OFF disables word wrap.Nested classes/interfaces inherited from class Field
Field.Type -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new textarea element with a initial value of "" (the empty string).Creates a new textarea element with a initial value of "" and the specified rows/cols.Creates a new text element with the specified initial value.Creates a new text element with the specified initial value and rows/cols. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Subclasses should return an appropriateField.Type.voidrenderImpl(FormData fd, Writer writer) setCols(int cols) This value (if set) is rendered as the html COLS tag.setRows(int rows) This value (if set) is rendered as the html ROWS tag.setWrap(TextArea.WrapType wrap) Sets the wrapping mode of this text box.Methods inherited from class AbstractText
getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getShortValue, getStringValue, getValue, isFilled, reset, setValue, setValue, setValueFromSubmit, toString, trimValuesMethods inherited from class Field
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderStyleTag, setStyleTag, validate
-
Constructor Details
-
TextArea
-
TextArea
-
TextArea
-
TextArea
-
-
Method Details
-
getType
Description copied from class:FieldSubclasses should return an appropriateField.Type. This type is rendered as part of <input type= ... -
renderImpl
- Specified by:
renderImplin classField- Throws:
IOException
-
setCols
-
setRows
-
setWrap
Sets the wrapping mode of this text box. This value (if set) is rendered as the html WRAP tag. By default the wrap value is not set (and hence not rendered).- Returns:
- this object for method chaining convenience
-