Class TextboxFormElement

java.lang.Object
com.foreach.across.modules.web.ui.elements.ContainerViewElement
com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
com.foreach.across.modules.bootstrapui.elements.FormControlElementSupport
com.foreach.across.modules.bootstrapui.elements.TextboxFormElement
All Implemented Interfaces:
ConfigurablePlaceholderText, FormControlElement, FormInputElement, com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement, com.foreach.across.modules.web.ui.elements.HtmlViewElement, com.foreach.across.modules.web.ui.MutableViewElement, com.foreach.across.modules.web.ui.ViewElement
Direct Known Subclasses:
TextareaFormElement

public class TextboxFormElement extends FormControlElementSupport implements com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement, ConfigurablePlaceholderText
Author:
Arne Vandamme
  • Field Details

  • Constructor Details

    • TextboxFormElement

      public TextboxFormElement()
  • Method Details

    • setDisabled

      public TextboxFormElement setDisabled(boolean disabled)
      Specified by:
      setDisabled in interface FormInputElement
      Overrides:
      setDisabled in class FormControlElementSupport
      Returns:
      this.
    • setReadonly

      public TextboxFormElement setReadonly(boolean readonly)
      Specified by:
      setReadonly in interface FormControlElement
      Overrides:
      setReadonly in class FormControlElementSupport
      Returns:
      this.
    • setRequired

      public TextboxFormElement setRequired(boolean required)
      Specified by:
      setRequired in interface FormControlElement
      Overrides:
      setRequired in class FormControlElementSupport
      Returns:
      this.
    • setName

      public TextboxFormElement setName(String name)
      Specified by:
      setName in interface com.foreach.across.modules.web.ui.MutableViewElement
      Overrides:
      setName in class FormControlElementSupport
    • setControlName

      public TextboxFormElement setControlName(String controlName)
      Specified by:
      setControlName in interface FormInputElement
      Overrides:
      setControlName in class FormControlElementSupport
    • setHtmlId

      public TextboxFormElement setHtmlId(String htmlId)
      Specified by:
      setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setHtmlId in class FormControlElementSupport
    • addCssClass

      public TextboxFormElement addCssClass(String... cssClass)
      Specified by:
      addCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      addCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • removeCssClass

      public TextboxFormElement removeCssClass(String... cssClass)
      Specified by:
      removeCssClass in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      removeCssClass in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setAttributes

      public TextboxFormElement setAttributes(Map<String,Object> attributes)
      Specified by:
      setAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setAttributes in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setAttribute

      public TextboxFormElement setAttribute(String attributeName, Object attributeValue)
      Specified by:
      setAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addAttributes

      public TextboxFormElement addAttributes(Map<String,Object> attributes)
      Specified by:
      addAttributes in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      addAttributes in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • removeAttribute

      public TextboxFormElement removeAttribute(String attributeName)
      Specified by:
      removeAttribute in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      removeAttribute in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setCustomTemplate

      public TextboxFormElement setCustomTemplate(String customTemplate)
      Specified by:
      setCustomTemplate in interface com.foreach.across.modules.web.ui.MutableViewElement
      Overrides:
      setCustomTemplate in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setElementType

      protected TextboxFormElement setElementType(String elementType)
      Overrides:
      setElementType in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addChild

      public TextboxFormElement addChild(com.foreach.across.modules.web.ui.ViewElement element)
      Overrides:
      addChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addChildren

      public TextboxFormElement addChildren(Collection<? extends com.foreach.across.modules.web.ui.ViewElement> elements)
      Overrides:
      addChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • addFirstChild

      public TextboxFormElement addFirstChild(com.foreach.across.modules.web.ui.ViewElement element)
      Overrides:
      addFirstChild in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • clearChildren

      public TextboxFormElement clearChildren()
      Overrides:
      clearChildren in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • apply

      public TextboxFormElement apply(Consumer<com.foreach.across.modules.web.ui.elements.ContainerViewElement> consumer)
      Overrides:
      apply in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • applyUnsafe

      public <U extends com.foreach.across.modules.web.ui.ViewElement> TextboxFormElement applyUnsafe(Consumer<U> consumer)
      Overrides:
      applyUnsafe in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • setTagName

      protected TextboxFormElement setTagName(String tagName)
      Overrides:
      setTagName in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • set

      public TextboxFormElement set(com.foreach.across.modules.web.ui.ViewElement.WitherSetter... setters)
      Specified by:
      set in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Specified by:
      set in interface com.foreach.across.modules.web.ui.MutableViewElement
      Specified by:
      set in interface com.foreach.across.modules.web.ui.ViewElement
      Overrides:
      set in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • remove

      public TextboxFormElement remove(com.foreach.across.modules.web.ui.ViewElement.WitherRemover... functions)
      Specified by:
      remove in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Specified by:
      remove in interface com.foreach.across.modules.web.ui.MutableViewElement
      Specified by:
      remove in interface com.foreach.across.modules.web.ui.ViewElement
      Overrides:
      remove in class com.foreach.across.modules.web.ui.elements.AbstractNodeViewElement
    • getType

      public TextboxFormElement.Type getType()
    • getPlaceholder

      public String getPlaceholder()
      Specified by:
      getPlaceholder in interface ConfigurablePlaceholderText
    • getText

      public String getText()
      Specified by:
      getText in interface com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
    • getMaxLength

      public Integer getMaxLength()
    • isDisableLineBreaks

      public boolean isDisableLineBreaks()
    • setType

      Returns:
      this.
    • setPlaceholder

      public TextboxFormElement setPlaceholder(String placeholder)
      Specified by:
      setPlaceholder in interface ConfigurablePlaceholderText
      Returns:
      this.
    • setText

      public TextboxFormElement setText(String text)
      Specified by:
      setText in interface com.foreach.across.modules.web.ui.elements.ConfigurableTextViewElement
      Returns:
      this.
    • setMaxLength

      public TextboxFormElement setMaxLength(Integer maxLength)
      Returns:
      this.
    • setDisableLineBreaks

      public TextboxFormElement setDisableLineBreaks(boolean disableLineBreaks)
      Returns:
      this.