Class HiddenFormElement

java.lang.Object
com.foreach.across.modules.web.ui.ViewElementSupport
com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
com.foreach.across.modules.bootstrapui.elements.HiddenFormElement
All Implemented Interfaces:
FormInputElement, com.foreach.across.modules.web.ui.elements.HtmlViewElement, com.foreach.across.modules.web.ui.MutableViewElement, com.foreach.across.modules.web.ui.ViewElement

public class HiddenFormElement extends com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement implements FormInputElement
Author:
Arne Vandamme
  • Field Details

  • Constructor Details

    • HiddenFormElement

      public HiddenFormElement()
  • Method Details

    • getControlName

      public String getControlName()
      Specified by:
      getControlName in interface FormInputElement
    • setControlName

      public HiddenFormElement setControlName(String controlName)
      Specified by:
      setControlName in interface FormInputElement
    • isDisabled

      public boolean isDisabled()
      Specified by:
      isDisabled in interface FormInputElement
    • setDisabled

      public HiddenFormElement setDisabled(boolean disabled)
      Specified by:
      setDisabled in interface FormInputElement
    • set

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • remove

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • getValue

      public Object getValue()
    • getValue

      public <V> V getValue(Class<V> expectedType)
    • setValue

      public HiddenFormElement setValue(Object value)
    • toFormControl

      public FormControlElement toFormControl()
      Returns a generic FormControlElement matching this hidden element. Will be detected by BootstrapElementUtils.getFormControl(ViewElement), whereas the regular HiddenFormElement will not.

      Can be used to provide a (disabled) errors holder in a FormGroupElement for example.

      Returns:
      hidden element as form control
    • addCssClass

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • removeCssClass

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • setAttributes

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • setAttribute

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • addAttributes

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • removeAttribute

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • setTagName

      protected HiddenFormElement setTagName(String tagName)
      Overrides:
      setTagName in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
    • setHtmlId

      public HiddenFormElement setHtmlId(String htmlId)
      Specified by:
      setHtmlId in interface com.foreach.across.modules.web.ui.elements.HtmlViewElement
      Overrides:
      setHtmlId in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
    • setName

      public HiddenFormElement setName(String name)
      Specified by:
      setName in interface com.foreach.across.modules.web.ui.MutableViewElement
      Overrides:
      setName in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement
    • setCustomTemplate

      public HiddenFormElement 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.AbstractVoidNodeViewElement
    • setElementType

      protected HiddenFormElement setElementType(String elementType)
      Overrides:
      setElementType in class com.foreach.across.modules.web.ui.elements.AbstractVoidNodeViewElement