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 Details

  • Constructor Details

    • GeneratedDialog

      public GeneratedDialog()
  • Method Details

    • 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