Class 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.
    • Constructor Detail

      • GeneratedDialog

        public GeneratedDialog()
    • Method Detail

      • initAnnotationValues

        public void initAnnotationValues​(DialogProvider annotation)
      • 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()
      • getFormTitle

        public String getFormTitle()
        Returns:
        the formTitle
      • setFormTitle

        public void setFormTitle​(String formTitle)
        Parameters:
        formTitle - the formTitle to set