Package org.opencms.widgets
Class CmsAdeImageGalleryWidget
java.lang.Object
org.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsAdeGalleryWidget
org.opencms.widgets.CmsAdeImageGalleryWidget
- All Implemented Interfaces:
I_CmsADEWidget,I_CmsWidget
- Direct Known Subclasses:
CmsVfsImageWidget
ADE image gallery widget implementations.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.widgets.A_CmsWidget
A_CmsWidget.CmsDummyWidgetDialog -
Field Summary
Fields inherited from class org.opencms.widgets.A_CmsAdeGalleryWidget
PATH_GALLERY_JSPFields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructor.protectedCmsAdeImageGalleryWidget(String configuration) Creates a new gallery widget with the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected JSONObjectgetAdditionalGalleryInfo(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) Returns additional widget information encapsulated in a JSON object.Returns the lower case name of the gallery, for example"html".protected StringGets the prefix for the key used to store the last selected gallery.protected StringReturns the resource type names available within this gallery widget.protected StringgetOpenPreviewCall(I_CmsWidgetDialog widgetDialog, String id) Returns the javascript call to open the preview dialog.protected CmsVfsImageWidgetConfigurationgetWidgetConfiguration(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param) Returns the widget configuration.Returns the class name of the widget.Creates a duplicate of this widget instance.Methods inherited from class org.opencms.widgets.A_CmsAdeGalleryWidget
getConfiguration, getCssResourceLinks, getDefaultDisplayType, getDialogWidget, getGalleryOpenParams, getInitCall, getJavaScriptResourceLinks, getJSONConfig, getOpenGalleryCall, isCompactViewEnabled, isInternalMethods inherited from class org.opencms.widgets.A_CmsWidget
equals, getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, setConfiguration, setEditorValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.widgets.I_CmsWidget
getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, getWidgetStringValue, setConfiguration, setEditorValue
-
Constructor Details
-
CmsAdeImageGalleryWidget
public CmsAdeImageGalleryWidget()Constructor. -
CmsAdeImageGalleryWidget
Creates a new gallery widget with the given configuration.- Parameters:
configuration- the configuration to use
-
-
Method Details
-
getGalleryName
Description copied from class:A_CmsAdeGalleryWidgetReturns the lower case name of the gallery, for example"html".- Specified by:
getGalleryNamein classA_CmsAdeGalleryWidget- Returns:
- the lower case name of the gallery
- See Also:
-
getWidgetName
Description copied from interface:I_CmsADEWidgetReturns the class name of the widget.- Specified by:
getWidgetNamein interfaceI_CmsADEWidget- Overrides:
getWidgetNamein classA_CmsAdeGalleryWidget- Returns:
- the class name
- See Also:
-
newInstance
Description copied from interface:I_CmsWidgetCreates a duplicate of this widget instance.- Returns:
- a duplicate of this widget instance
- See Also:
-
getAdditionalGalleryInfo
protected JSONObject getAdditionalGalleryInfo(CmsObject cms, String resource, CmsMessages messages, I_CmsWidgetParameter param) throws JSONException Description copied from class:A_CmsAdeGalleryWidgetReturns additional widget information encapsulated in a JSON object.May be
null.- Specified by:
getAdditionalGalleryInfoin classA_CmsAdeGalleryWidget- Parameters:
cms- an initialized instance of a CmsObjectresource- the edited resourcemessages- the dialog messagesparam- the widget parameter to generate the widget for- Returns:
- additional widget information
- Throws:
JSONException- if something goes wrong generating the JSON object- See Also:
-
getGalleryStoragePrefix
Description copied from class:A_CmsAdeGalleryWidgetGets the prefix for the key used to store the last selected gallery.- Overrides:
getGalleryStoragePrefixin classA_CmsAdeGalleryWidget- Returns:
- the key prefix
- See Also:
-
getGalleryTypes
Description copied from class:A_CmsAdeGalleryWidgetReturns the resource type names available within this gallery widget.- Specified by:
getGalleryTypesin classA_CmsAdeGalleryWidget- Returns:
- the resource type names
- See Also:
-
getOpenPreviewCall
Description copied from class:A_CmsAdeGalleryWidgetReturns the javascript call to open the preview dialog.- Overrides:
getOpenPreviewCallin classA_CmsAdeGalleryWidget- Parameters:
widgetDialog- the dialog where the widget is used onid- the field id- Returns:
- the javascript call to open the preview dialog
- See Also:
-
getWidgetConfiguration
protected CmsVfsImageWidgetConfiguration getWidgetConfiguration(CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param) Description copied from class:A_CmsAdeGalleryWidgetReturns the widget configuration.- Overrides:
getWidgetConfigurationin classA_CmsAdeGalleryWidget- Parameters:
cms- an initialized instance of a CmsObjectmessages- the dialog where the widget is used onparam- the widget parameter to generate the widget for- Returns:
- the widget configuration
- See Also:
-