Package com.adobe.acs.commons.mcp.form
Class GeneratedDialog
- java.lang.Object
-
- com.adobe.acs.commons.mcp.form.GeneratedDialog
-
- Direct Known Subclasses:
DynamicDeckInitiatorPageModel,GeneratedDialogWrapper
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class, defaultInjectionStrategy=OPTIONAL) public class GeneratedDialog extends ObjectGenerates a dialog out of @FormField annotations. Ideally your sling model should extend this class to inherit its API. Otherwise if you just want a generated dialog without the methods in this class, apply the DialogProvider annotation to your class by itself. NOTE: Subclassing will only produce a dialog provider OSGi service if you declare the resourceType either in the Model annotation or via a getter or public property for resourceType. The DialogProvider annotation will also provide an OSGi service but under the same conditions that resourceType is defined by your class.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,FieldComponent>fieldComponents
-
Constructor Summary
Constructors Constructor Description GeneratedDialog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getAllClientLibraries()Collection<String>getCssClientLibraries()Map<String,FieldComponent>getFieldComponents()FormComponentgetForm()org.apache.sling.api.resource.ResourcegetFormResource()StringgetFormTitle()Collection<String>getJsClientLibraries()org.apache.sling.api.SlingHttpServletRequestgetRequest()org.apache.sling.api.resource.ResourcegetResource()org.apache.sling.api.scripting.SlingScriptHelpergetSlingHelper()voidinit()voidinitAnnotationValues(DialogProvider annotation)voidsetFormTitle(String formTitle)
-
-
-
Field Detail
-
fieldComponents
protected Map<String,FieldComponent> fieldComponents
-
-
Method Detail
-
init
@PostConstruct public void init()
-
initAnnotationValues
public void initAnnotationValues(DialogProvider annotation)
-
getFieldComponents
public Map<String,FieldComponent> getFieldComponents()
-
getAllClientLibraries
public Collection<String> getAllClientLibraries()
-
getCssClientLibraries
public Collection<String> getCssClientLibraries()
-
getJsClientLibraries
public Collection<String> getJsClientLibraries()
-
getResource
public org.apache.sling.api.resource.Resource getResource()
- Returns:
- the resource
-
getRequest
public org.apache.sling.api.SlingHttpServletRequest getRequest()
- Returns:
- the request
-
getSlingHelper
public org.apache.sling.api.scripting.SlingScriptHelper getSlingHelper()
- Returns:
- the sling helper
-
getFormResource
public org.apache.sling.api.resource.Resource getFormResource()
-
getForm
public FormComponent getForm()
-
getFormTitle
public String getFormTitle()
- Returns:
- the formTitle
-
setFormTitle
public void setFormTitle(String formTitle)
- Parameters:
formTitle- the formTitle to set
-
-