Class ButtonComponent

java.lang.Object
com.adobe.acs.commons.mcp.form.FieldComponent
com.adobe.acs.commons.mcp.form.ButtonComponent

@ProviderType public final class ButtonComponent extends FieldComponent
Represent a button on a form
  • Constructor Details

    • ButtonComponent

      public ButtonComponent()
  • Method Details

    • init

      public void init()
      Specified by:
      init in class FieldComponent
    • 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:
    • getActionConfigName

      public String getActionConfigName()
      Returns:
      the actionConfigName
    • setActionConfigName

      public void setActionConfigName(String actionConfigName)
      Parameters:
      actionConfigName - the actionConfigName to set
    • isActive

      public boolean isActive()
      Returns:
      the active
    • setActive

      public void setActive(boolean active)
      Parameters:
      active - the active to set
    • getAutocomplete

      public String getAutocomplete()
      Returns:
      the autocomplete
    • setAutocomplete

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

      public boolean isBlock()
      Returns:
      the block
    • setBlock

      public void setBlock(boolean block)
      Parameters:
      block - the block to set
    • getCommand

      public String getCommand()
      Returns:
      the command
    • setCommand

      public void setCommand(String command)
      Parameters:
      command - the command to set
    • getComment

      public String getComment()
      Returns:
      the comment
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - the comment to set
    • isDisabled

      public boolean isDisabled()
      Returns:
      the disabled
    • setDisabled

      public void setDisabled(boolean disabled)
      Parameters:
      disabled - the disabled to set
    • getFormId

      public String getFormId()
      Returns:
      the formId
    • setFormId

      public void setFormId(String formId)
      Parameters:
      formId - the formId to set
    • isHideText

      public boolean isHideText()
      Returns:
      the hideText
    • setHideText

      public void setHideText(boolean hideText)
      Parameters:
      hideText - the hideText to set
    • getIcon

      public String getIcon()
      Returns:
      the icon
    • setIcon

      public void setIcon(String icon)
      Parameters:
      icon - the icon to set
    • getIconSize

      public String getIconSize()
      Returns:
      the iconSize
    • setIconSize

      public void setIconSize(String iconSize)
      Parameters:
      iconSize - the iconSize to set
    • getText

      public String getText()
      Returns:
      the text
    • setText

      public void setText(String text)
      Parameters:
      text - the text to set
    • getTrackingFeature

      public String getTrackingFeature()
      Returns:
      the trackingFeature
    • setTrackingFeature

      public void setTrackingFeature(String trackingFeature)
      Parameters:
      trackingFeature - the trackingFeature to set
    • getTrackingElement

      public String getTrackingElement()
      Returns:
      the trackingElement
    • setTrackingElement

      public void setTrackingElement(String trackingElement)
      Parameters:
      trackingElement - the trackingElement to set
    • getType

      public String getType()
      Returns:
      the type
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set
    • getVariant

      public String getVariant()
      Returns:
      the variant
    • setVariant

      public void setVariant(String variant)
      Parameters:
      variant - the variant to set