Class TextArea


public final class TextArea extends AbstractText
A HTML TextArea
  • Constructor Details

    • TextArea

      public TextArea(String name)
      Creates a new textarea element with a initial value of "" (the empty string). No initial rows/cols are specified which will have the effect of rendering this field with the browsers default.
    • TextArea

      public TextArea(String name, int rows, int cols)
      Creates a new textarea element with a initial value of "" and the specified rows/cols.
    • TextArea

      public TextArea(String name, String value)
      Creates a new text element with the specified initial value. If the specified value is null, then the initial value is set to "" (the empty string)
    • TextArea

      public TextArea(String name, String value, int rows, int cols)
      Creates a new text element with the specified initial value and rows/cols.
  • Method Details

    • getType

      public Field.Type getType()
      Description copied from class: Field
      Subclasses should return an appropriate Field.Type. This type is rendered as part of <input type= ...
      Specified by:
      getType in class Field
    • renderImpl

      public void renderImpl(FormData fd, Writer writer) throws IOException
      Specified by:
      renderImpl in class Field
      Throws:
      IOException
    • setCols

      public TextArea setCols(int cols)
      This value (if set) is rendered as the html COLS tag.
      Returns:
      this object for method chaining convenience
    • setRows

      public TextArea setRows(int rows)
      This value (if set) is rendered as the html ROWS tag.
      Returns:
      this object for method chaining convenience
    • 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