Class CmsGalleryFactory


  • public final class CmsGalleryFactory
    extends java.lang.Object
    Factory class to create gallery dialog with or without parameter.

    Since:
    8.0.
    • Method Detail

      • createDialog

        public static CmsGalleryDialog createDialog​(CmsPopup popup)
        Returns a gallery dialog object.

        Parameters:
        popup - the parent popup widget
        Returns:
        gallery dialog
      • createDialog

        public static CmsGalleryDialog createDialog​(I_CmsGalleryHandler galleryHandler,
                                                    org.opencms.ade.galleries.shared.CmsGalleryDataBean data)
        Creates a new gallery dialog.

        Parameters:
        galleryHandler - the gallery handler
        data - the gallery data
        Returns:
        the gallery dialog instance
      • createGalleryPopup

        public static CmsGalleryPopup createGalleryPopup​(I_CmsGalleryWidgetHandler handler,
                                                         org.opencms.ade.galleries.shared.I_CmsGalleryConfiguration conf)
        Creates a gallery widget pop-up.

        Parameters:
        handler - the widget handler, used to set the widgets value
        conf - the gallery configuration
        Returns:
        the generated pop-up