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 Object
Generates 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetForm()org.apache.sling.api.resource.Resourceorg.apache.sling.api.SlingHttpServletRequestorg.apache.sling.api.resource.Resourceorg.apache.sling.api.scripting.SlingScriptHelpervoidinit()voidinitAnnotationValues(DialogProvider annotation) voidsetFormTitle(String formTitle)
-
Field Details
-
fieldComponents
-
-
Constructor Details
-
GeneratedDialog
public GeneratedDialog()
-
-
Method Details
-
init
-
initAnnotationValues
-
getFieldComponents
-
getAllClientLibraries
-
getCssClientLibraries
-
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
-
getFormTitle
- Returns:
- the formTitle
-
setFormTitle
- Parameters:
formTitle- the formTitle to set
-