Class FormComponent


@ProviderType public final class FormComponent extends AbstractContainerComponent
Represent a form
  • Constructor Details

    • FormComponent

      public FormComponent()
  • Method Details

    • init

      public void init()
      Overrides:
      init in class AbstractContainerComponent
    • buildComponentResource

      public org.apache.sling.api.resource.Resource buildComponentResource()
      Description copied from class: FieldComponent
      If your component needs child nodes then override this method, call the superclass implementation, and then use addChildren to add additional nodes to it.
      Overrides:
      buildComponentResource in class FieldComponent
      Returns:
    • hasCategories

      public boolean hasCategories(Collection<FieldComponent> values)
      Overrides:
      hasCategories in class AbstractContainerComponent
    • getMethod

      public String getMethod()
      Returns:
      the method
    • setMethod

      public final void setMethod(String method)
      Parameters:
      method - the method to set
    • getAction

      public String getAction()
      Returns:
      the action
    • setAction

      public final void setAction(String action)
      Parameters:
      action - the action to set
    • getEnctype

      public String getEnctype()
      Returns:
      the enctype
    • setEnctype

      public final void setEnctype(String enctype)
      Parameters:
      enctype - the enctype to set
    • getTarget

      public String getTarget()
      Returns:
      the target
    • setTarget

      public final void setTarget(String target)
      Parameters:
      target - the target to set
    • getAutocomplete

      public String getAutocomplete()
      Returns:
      the autocomplete
    • setAutocomplete

      public final void setAutocomplete(String autocomplete)
      Parameters:
      autocomplete - the autocomplete to set
    • isNovalidate

      public boolean isNovalidate()
      Returns:
      the novalidate
    • setNovalidate

      public final void setNovalidate(boolean novalidate)
      Parameters:
      novalidate - the novalidate to set
    • getDataPath

      public String getDataPath()
      Returns:
      the dataPath
    • setDataPath

      public final void setDataPath(String dataPath)
      Parameters:
      dataPath - the dataPath to set
    • getNameNotFoundMode

      public String getNameNotFoundMode()
      Returns:
      the nameNotFoundMode
    • setNameNotFoundMode

      public final void setNameNotFoundMode(String nameNotFoundMode)
      Parameters:
      nameNotFoundMode - the nameNotFoundMode to set
    • isAutosubmitForm

      public boolean isAutosubmitForm()
      Returns:
      the autosubmitForm
    • setAutosubmitForm

      public final void setAutosubmitForm(boolean autosubmitForm)
      Parameters:
      autosubmitForm - the autosubmitForm to set
    • isMargin

      public boolean isMargin()
      Returns:
      the margin
    • setMargin

      public final void setMargin(boolean margin)
      Parameters:
      margin - the margin to set
    • isMaximized

      public boolean isMaximized()
      Returns:
      the maximized
    • setMaximized

      public final void setMaximized(boolean maximized)
      Parameters:
      maximized - the maximized to set
    • isFoundationForm

      public boolean isFoundationForm()
      Returns:
      the foundationForm
    • setFoundationForm

      public final void setFoundationForm(boolean foundationForm)
      Parameters:
      foundationForm - the foundationForm to set
    • isAsync

      public boolean isAsync()
      Returns:
      the async
    • setAsync

      public final void setAsync(boolean async)
      Parameters:
      async - the async to set
    • isLoadingMask

      public boolean isLoadingMask()
      Returns:
      the loadingMask
    • setLoadingMask

      public final void setLoadingMask(boolean loadingMask)
      Parameters:
      loadingMask - the loadingMask to set
    • getUi

      public String getUi()
      Returns:
      the ui
    • setUi

      public final void setUi(String ui)
      Parameters:
      ui - the ui to set
    • isSuccessresponse

      public boolean isSuccessresponse()
      Returns:
      the successresponse
    • setSuccessresponse

      public final void setSuccessresponse(boolean successresponse)
      Parameters:
      successresponse - the successresponse to set
    • getStyle

      public String getStyle()
      Returns:
      the style
    • setStyle

      public void setStyle(String style)
      Parameters:
      style - the style to set