Class XssConfigurableTextArea

java.lang.Object
org.apache.click.control.AbstractControl
org.apache.click.control.Field
org.apache.click.control.TextArea
com.avoka.fc.core.click.XssConfigurableTextArea
All Implemented Interfaces:
Serializable, org.apache.click.Control, org.apache.click.Stateful

public class XssConfigurableTextArea extends org.apache.click.control.TextArea
Wrapper class for TextArea to provide enhanced xss protection.
Since:
22.04.0
See Also:
  • Field Summary

    Fields inherited from class org.apache.click.control.TextArea

    cols, maxLength, minLength, placeholder, rows, VALIDATE_TEXTAREA_FUNCTION

    Fields inherited from class org.apache.click.control.Field

    disabled, error, focus, form, help, label, labelStyle, labelStyleClass, parentStyleClassHint, parentStyleHint, readonly, required, tabindex, title, trim, validate, value

    Fields inherited from class org.apache.click.control.AbstractControl

    actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles

    Fields inherited from interface org.apache.click.Control

    CONTROL_MESSAGES
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct the XssConfigurableTextArea with the given name.
    XssConfigurableTextArea(String name, boolean required)
    Construct the XssConfigurableTextArea with the given name and required status.
    XssConfigurableTextArea(String name, int cols, int rows)
    Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.
    Construct the XssConfigurableTextArea with the given name and label.
    XssConfigurableTextArea(String name, String label, int cols, int rows)
    Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method binds the submitted request value to the Field's value if DeploymentProperty.PROPERTY_ENABLE_XSS_CONTROL_PROTECTION is true and value is safe.

    Methods inherited from class org.apache.click.control.TextArea

    getCols, getControlSizeEst, getMaxLength, getMinLength, getPlaceholder, getRows, getTag, getValidationJavaScript, render, setCols, setMaxLength, setMinLength, setPlaceholder, setRows, validate

    Methods inherited from class org.apache.click.control.Field

    getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getLabelStyle, getLabelStyleClass, getParentStyleClassHint, getParentStyleHint, getRequestValue, getState, getTabIndex, getTextAlign, getTitle, getValidate, getValue, getValueObject, getWidth, isAutofocus, isDisabled, isHidden, isReadonly, isRequired, isTrim, isValid, onProcess, removeState, renderTagBegin, restoreState, saveState, setAutofocus, setDisabled, setError, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setLabelStyle, setLabelStyleClass, setListener, setParent, setParentStyleClassHint, setParentStyleHint, setReadonly, setRequired, setState, setTabIndex, setTextAlign, setTitle, setTrim, setValidate, setValue, setValueObject, setWidth

    Methods inherited from class org.apache.click.control.AbstractControl

    addBehavior, addStyleClass, appendAttributes, classExists, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHeadElements, getHtmlImports, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, onDestroy, onInit, onRender, removeBehavior, removeStyleClass, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XssConfigurableTextArea

      public XssConfigurableTextArea(String name)
      Construct the XssConfigurableTextArea with the given name. The area will have a default size of 20 cols and 3 rows.
      Parameters:
      name - the name of the field
    • XssConfigurableTextArea

      public XssConfigurableTextArea(String name, String label)
      Construct the XssConfigurableTextArea with the given name and label. The area will have a default size of 20 cols and 3 rows.
      Parameters:
      name - the name of the field
      label - the label of the field
    • XssConfigurableTextArea

      public XssConfigurableTextArea(String name, boolean required)
      Construct the XssConfigurableTextArea with the given name and required status. The area will have a default size of 20 cols and 3 rows.
      Parameters:
      name - the name of the field
      required - the field required status
    • XssConfigurableTextArea

      public XssConfigurableTextArea(String name, int cols, int rows)
      Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.
      Parameters:
      name - the name of the field
      cols - the number of text area cols
      rows - the number of text area rows
    • XssConfigurableTextArea

      public XssConfigurableTextArea(String name, String label, int cols, int rows)
      Construct the XssConfigurableTextArea with the given name, label, number of columns and number of rows.
      Parameters:
      name - the name of the field
      label - the label of the field
      cols - the number of text area cols
      rows - the number of text area rows
  • Method Details