Class PageImageThumbnail


  • @Model(adaptables=SlingHttpServletRequest.class)
    public class PageImageThumbnail
    extends Object
    Defines a Sling Model used by the core/wcm/components/commons/editor/dialog/pageimagethumbnail/v1/pageimagethumbnail dialog widget that displays a thumbnail of the featured image of either the linked page if a linkURL is available or of the page that contains the component.
    Since:
    com.adobe.cq.wcm.core.components.commons.editor.dialog 1.0.0
    • Constructor Detail

      • PageImageThumbnail

        public PageImageThumbnail()
    • Method Detail

      • getAlt

        public String getAlt()
        Returns the alternative text of the featured image of either the linked page if a linkURL is available or of the page that contains the component.
        Returns:
        the alternative text of the page image
      • getSrc

        public String getSrc()
        Returns the src text of the featured image of either the linked page if a linkURL is available or of the page that contains the component.
        Returns:
        the src text of the page image
      • getComponentPath

        public String getComponentPath()
        Returns the component path.
        Returns:
        the component path
      • getConfigPath

        public String getConfigPath()
        Returns the configuration path of the widget.
        Returns:
        the configuration path
      • getCurrentPagePath

        public String getCurrentPagePath()
        Returns the path of the page containing the component.
        Returns:
        the path of the page containing the component