Package org.opencms.ade.galleries.client
Class CmsGalleryFactory
- java.lang.Object
-
- org.opencms.ade.galleries.client.CmsGalleryFactory
-
public final class CmsGalleryFactory extends java.lang.Object
Factory class to create gallery dialog with or without parameter.- Since:
- 8.0.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsGalleryDialog
createDialog(I_CmsGalleryHandler galleryHandler, org.opencms.ade.galleries.shared.CmsGalleryDataBean data)
Creates a new gallery dialog.static CmsGalleryDialog
createDialog(CmsPopup popup)
Returns a gallery dialog object.static CmsGalleryPopup
createGalleryPopup(I_CmsGalleryWidgetHandler handler, org.opencms.ade.galleries.shared.I_CmsGalleryConfiguration conf)
Creates a gallery widget pop-up.
-
-
-
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 handlerdata
- 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 valueconf
- the gallery configuration- Returns:
- the generated pop-up
-
-