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
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.api.resource.ResourceIf your component needs child nodes then override this method, call the superclass implementation, and then use addChildren to add additional nodes to it.getIcon()getText()getType()voidinit()booleanisActive()booleanisBlock()booleanbooleanvoidsetActionConfigName(String actionConfigName) voidsetActive(boolean active) voidsetAutocomplete(String autocomplete) voidsetBlock(boolean block) voidsetCommand(String command) voidsetComment(String comment) voidsetDisabled(boolean disabled) voidvoidsetHideText(boolean hideText) voidvoidsetIconSize(String iconSize) voidvoidsetTrackingElement(String trackingElement) voidsetTrackingFeature(String trackingFeature) voidvoidsetVariant(String variant) Methods inherited from class com.adobe.acs.commons.mcp.form.FieldComponent
addClientLibraries, addClientLibraries, addClientLibraries, addClientLibrary, getAccessibleObject, getBooleanOption, getCategory, getClientLibraryCategories, getFieldDefinition, getHelper, getHtml, getName, getOption, getOptionNames, getPath, getProperties, getResourceSuperType, getResourceType, hasOption, purgeEmptyProperties, setCategory, setHelper, setPath, setResourceSuperType, setResourceType, setup
-
Constructor Details
-
ButtonComponent
public ButtonComponent()
-
-
Method Details
-
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
- Returns:
- the actionConfigName
-
setActionConfigName
- 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
- Returns:
- the autocomplete
-
setAutocomplete
- 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
- Returns:
- the command
-
setCommand
- Parameters:
command- the command to set
-
getComment
- Returns:
- the comment
-
setComment
- 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
- Returns:
- the formId
-
setFormId
- 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
- Returns:
- the icon
-
setIcon
- Parameters:
icon- the icon to set
-
getIconSize
- Returns:
- the iconSize
-
setIconSize
- Parameters:
iconSize- the iconSize to set
-
getText
- Returns:
- the text
-
setText
- Parameters:
text- the text to set
-
getTrackingFeature
- Returns:
- the trackingFeature
-
setTrackingFeature
- Parameters:
trackingFeature- the trackingFeature to set
-
getTrackingElement
- Returns:
- the trackingElement
-
setTrackingElement
- Parameters:
trackingElement- the trackingElement to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getVariant
- Returns:
- the variant
-
setVariant
- Parameters:
variant- the variant to set
-