Package com.adobe.acs.commons.mcp.form
Class FormComponent
java.lang.Object
com.adobe.acs.commons.mcp.form.FieldComponent
com.adobe.acs.commons.mcp.form.AbstractContainerComponent
com.adobe.acs.commons.mcp.form.FormComponent
Represent 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.getStyle()getUi()booleanhasCategories(Collection<FieldComponent> values) voidinit()booleanisAsync()booleanbooleanbooleanbooleanisMargin()booleanbooleanbooleanfinal voidfinal voidsetAsync(boolean async) final voidsetAutocomplete(String autocomplete) final voidsetAutosubmitForm(boolean autosubmitForm) final voidsetDataPath(String dataPath) final voidsetEnctype(String enctype) final voidsetFoundationForm(boolean foundationForm) final voidsetLoadingMask(boolean loadingMask) final voidsetMargin(boolean margin) final voidsetMaximized(boolean maximized) final voidfinal voidsetNameNotFoundMode(String nameNotFoundMode) final voidsetNovalidate(boolean novalidate) voidfinal voidsetSuccessresponse(boolean successresponse) final voidfinal voidMethods inherited from class com.adobe.acs.commons.mcp.form.AbstractContainerComponent
addComponent, applyDialogProviderSettings, generateDefaultChildComponent, generateItemsResource, getDialogStyle, getFieldComponents, getGroupingContainer, getPropertiesTabName, isComposite, isForceDotSlashPrefix, setComposite, setDefaultChildComponent, setDialogStyle, setForceDotSlashPrefix, setGroupingContainer, setPropertiesTabNameMethods 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
-
FormComponent
public FormComponent()
-
-
Method Details
-
init
public void init()- Overrides:
initin classAbstractContainerComponent
-
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:
-
hasCategories
- Overrides:
hasCategoriesin classAbstractContainerComponent
-
getMethod
- Returns:
- the method
-
setMethod
- Parameters:
method- the method to set
-
getAction
- Returns:
- the action
-
setAction
- Parameters:
action- the action to set
-
getEnctype
- Returns:
- the enctype
-
setEnctype
- Parameters:
enctype- the enctype to set
-
getTarget
- Returns:
- the target
-
setTarget
- Parameters:
target- the target to set
-
getAutocomplete
- Returns:
- the autocomplete
-
setAutocomplete
- 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
- Returns:
- the dataPath
-
setDataPath
- Parameters:
dataPath- the dataPath to set
-
getNameNotFoundMode
- Returns:
- the nameNotFoundMode
-
setNameNotFoundMode
- 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
- Returns:
- the ui
-
setUi
- 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
- Returns:
- the style
-
setStyle
- Parameters:
style- the style to set
-