Class CmsGalleryFactory

java.lang.Object
org.opencms.ade.galleries.client.CmsGalleryFactory

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

Since:
8.0.
  • Method Details

    • 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