org.opencms.widgets
Class CmsAdeImageGalleryWidget

java.lang.Object
  extended by org.opencms.widgets.A_CmsWidget
      extended by org.opencms.widgets.A_CmsAdeGalleryWidget
          extended by org.opencms.widgets.CmsAdeImageGalleryWidget
All Implemented Interfaces:
I_CmsWidget
Direct Known Subclasses:
CmsVfsImageWidget

public class CmsAdeImageGalleryWidget
extends A_CmsAdeGalleryWidget

ADE image gallery widget implementations.

Since:
8.0.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opencms.widgets.A_CmsAdeGalleryWidget
A_CmsAdeGalleryWidget.GALLERY_PARAM
 
Field Summary
 
Fields inherited from class org.opencms.widgets.A_CmsAdeGalleryWidget
PATH_GALLERY_JSP
 
Fields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX
 
Constructor Summary
  CmsAdeImageGalleryWidget()
          Constructor.
protected CmsAdeImageGalleryWidget(String configuration)
          Creates a new gallery widget with the given configuration.
 
Method Summary
protected  JSONObject getAdditionalGalleryInfo(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
          Returns additional widget information encapsulated in a JSON object.
 String getGalleryName()
          Returns the lower case name of the gallery, for example "html".
protected  String getGalleryTypes()
          Returns the resource type names available within this gallery widget.
protected  String getOpenPreviewCall(I_CmsWidgetDialog widgetDialog, String id)
          Returns the javascript call to open the preview dialog.
protected  CmsVfsImageWidgetConfiguration getWidgetConfiguration(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
          Returns the widget configuration.
 I_CmsWidget newInstance()
          Creates a duplicate of this widget instance.
 
Methods inherited from class org.opencms.widgets.A_CmsAdeGalleryWidget
getDialogWidget, getGalleryOpenParams, getOpenGalleryCall
 
Methods inherited from class org.opencms.widgets.A_CmsWidget
equals, getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, setConfiguration, setEditorValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsAdeImageGalleryWidget

public CmsAdeImageGalleryWidget()
Constructor.


CmsAdeImageGalleryWidget

protected CmsAdeImageGalleryWidget(String configuration)
Creates a new gallery widget with the given configuration.

Parameters:
configuration - the configuration to use
Method Detail

getGalleryName

public String getGalleryName()
Description copied from class: A_CmsAdeGalleryWidget
Returns the lower case name of the gallery, for example "html".

Specified by:
getGalleryName in class A_CmsAdeGalleryWidget
Returns:
the lower case name of the gallery
See Also:
A_CmsAdeGalleryWidget.getGalleryName()

newInstance

public I_CmsWidget newInstance()
Description copied from interface: I_CmsWidget
Creates a duplicate of this widget instance.

Returns:
a duplicate of this widget instance
See Also:
I_CmsWidget.newInstance()

getAdditionalGalleryInfo

protected JSONObject getAdditionalGalleryInfo(CmsObject cms,
                                              I_CmsWidgetDialog widgetDialog,
                                              I_CmsWidgetParameter param)
                                       throws JSONException
Description copied from class: A_CmsAdeGalleryWidget
Returns additional widget information encapsulated in a JSON object.

May be null.

Specified by:
getAdditionalGalleryInfo in class A_CmsAdeGalleryWidget
Parameters:
cms - an initialized instance of a CmsObject
widgetDialog - the dialog where the widget is used on
param - the widget parameter to generate the widget for
Returns:
additional widget information
Throws:
JSONException
See Also:
A_CmsAdeGalleryWidget.getAdditionalGalleryInfo(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)

getWidgetConfiguration

protected CmsVfsImageWidgetConfiguration getWidgetConfiguration(CmsObject cms,
                                                                I_CmsWidgetDialog widgetDialog,
                                                                I_CmsWidgetParameter param)
Description copied from class: A_CmsAdeGalleryWidget
Returns the widget configuration.

Overrides:
getWidgetConfiguration in class A_CmsAdeGalleryWidget
Parameters:
cms - an initialized instance of a CmsObject
widgetDialog - the dialog where the widget is used on
param - the widget parameter to generate the widget for
Returns:
the widget configuration
See Also:
A_CmsAdeGalleryWidget.getWidgetConfiguration(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)

getGalleryTypes

protected String getGalleryTypes()
Description copied from class: A_CmsAdeGalleryWidget
Returns the resource type names available within this gallery widget.

Specified by:
getGalleryTypes in class A_CmsAdeGalleryWidget
Returns:
the resource type names
See Also:
A_CmsAdeGalleryWidget.getGalleryTypes()

getOpenPreviewCall

protected String getOpenPreviewCall(I_CmsWidgetDialog widgetDialog,
                                    String id)
Description copied from class: A_CmsAdeGalleryWidget
Returns the javascript call to open the preview dialog.

Overrides:
getOpenPreviewCall in class A_CmsAdeGalleryWidget
Parameters:
widgetDialog - the dialog where the widget is used on
id - the field id
Returns:
the javascript call to open the preview dialog
See Also:
A_CmsAdeGalleryWidget.getOpenPreviewCall(org.opencms.widgets.I_CmsWidgetDialog, java.lang.String)