All Implemented Interfaces:
TagBase, TextAreaAttributable, Serializable, Cloneable

public class Wrap extends AbstractAttribute implements TextAreaAttributable
wrap attribute for textarea
Since:
3.0.1
See Also:
  • Field Details

    • SOFT

      public static final String SOFT
      not to be wrapped when submitted in a form
      See Also:
    • HARD

      public static final String HARD
      to be wrapped when submitted in a form. It will create new lines in the content. Cols attribute must be specified to textarea if using this value.
      See Also:
  • Constructor Details

    • Wrap

      public Wrap()
      creates attribute with soft as default value
      Since:
      3.0.1
    • Wrap

      public Wrap(String value)
  • Method Details

    • setValue

      public void setValue(String value)
      sets the value for this attribute
      Parameters:
      value - the value for the attribute.
      Since:
      3.0.1
    • setValue

      public void setValue(boolean updateClient, String value)
      sets the value for this attribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      3.0.1
    • getValue

      public String getValue()
      gets the value of this attribute
      Returns:
      the value of the attribute
      Since:
      3.0.1
    • init

      protected void init()
      invokes only once per object
      Since:
      3.0.1