Package com.adobe.acs.commons.mcp.form
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adobe.acs.commons.mcp.form.FieldComponent
FieldComponent.ClientLibraryType
-
-
Constructor Summary
Constructors Constructor Description ButtonComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.api.resource.ResourcebuildComponentResource()If your component needs child nodes then override this method, call the superclass implementation, and then use addChildren to add additional nodes to it.StringgetActionConfigName()StringgetAutocomplete()StringgetCommand()StringgetComment()StringgetFormId()StringgetIcon()StringgetIconSize()StringgetText()StringgetTrackingElement()StringgetTrackingFeature()StringgetType()StringgetVariant()voidinit()booleanisActive()booleanisBlock()booleanisDisabled()booleanisHideText()voidsetActionConfigName(String actionConfigName)voidsetActive(boolean active)voidsetAutocomplete(String autocomplete)voidsetBlock(boolean block)voidsetCommand(String command)voidsetComment(String comment)voidsetDisabled(boolean disabled)voidsetFormId(String formId)voidsetHideText(boolean hideText)voidsetIcon(String icon)voidsetIconSize(String iconSize)voidsetText(String text)voidsetTrackingElement(String trackingElement)voidsetTrackingFeature(String trackingFeature)voidsetType(String type)voidsetVariant(String variant)-
Methods inherited from class com.adobe.acs.commons.mcp.form.FieldComponent
addClientLibraries, addClientLibraries, addClientLibraries, addClientLibrary, getAccessibleObject, getBooleanOption, getCategory, getClientLibraryCategories, getComponentMetadata, getField, getFieldDefinition, getHelper, getHtml, getName, getOption, getOptionNames, getPath, getResourceSuperType, getResourceType, hasOption, purgeEmptyMetadata, setCategory, setHelper, setPath, setResourceSuperType, setResourceType, setup
-
-
-
-
Method Detail
-
init
public void init()
- Specified by:
initin classFieldComponent
-
buildComponentResource
public org.apache.sling.api.resource.Resource buildComponentResource()
Description copied from class:FieldComponentIf your component needs child nodes then override this method, call the superclass implementation, and then use addChildren to add additional nodes to it.- Overrides:
buildComponentResourcein classFieldComponent- 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
-
-