Package org.opencms.widgets
Class CmsLinkGalleryWidget
java.lang.Object
org.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsGalleryWidget
org.opencms.widgets.CmsLinkGalleryWidget
- All Implemented Interfaces:
I_CmsADEWidget
,I_CmsWidget
Provides a widget that allows access to the available OpenCms external link galleries, for use on a widget dialog.
- Since:
- 6.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_CmsWidget
HELP_POSTFIX, LABEL_PREFIX
-
Constructor Summary
ConstructorDescriptionCreates a new external link gallery widget.CmsLinkGalleryWidget
(String configuration) Creates a new external link gallery widget with the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the lower case name of the gallery, for example"html"
.Returns the upper case name of the gallery, for example"Html"
.Returns the class name of the widget.Creates a duplicate of this widget instance.boolean
showPreview
(String value) Returnstrue
if the preview button should be shown.Methods inherited from class org.opencms.widgets.A_CmsGalleryWidget
getConfiguration, getCssResourceLinks, getDefaultDisplayType, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getDialogWidget, getInitCall, getJavaScriptResourceLinks, isCompactViewEnabled, isInternal
Methods inherited from class org.opencms.widgets.A_CmsWidget
equals, getConfiguration, getDialogHtmlEnd, 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
Methods inherited from interface org.opencms.widgets.I_CmsWidget
getConfiguration, getDialogHtmlEnd, getHelpBubble, getHelpText, getWidgetStringValue, setConfiguration, setEditorValue
-
Constructor Details
-
CmsLinkGalleryWidget
public CmsLinkGalleryWidget()Creates a new external link gallery widget. -
CmsLinkGalleryWidget
Creates a new external link gallery widget with the given configuration.- Parameters:
configuration
- the configuration to use
-
-
Method Details
-
getNameLower
Description copied from class:A_CmsGalleryWidget
Returns the lower case name of the gallery, for example"html"
.- Specified by:
getNameLower
in classA_CmsGalleryWidget
- Returns:
- the lower case name of the gallery
- See Also:
-
getNameUpper
Description copied from class:A_CmsGalleryWidget
Returns the upper case name of the gallery, for example"Html"
.- Specified by:
getNameUpper
in classA_CmsGalleryWidget
- Returns:
- the upper case name of the gallery
- See Also:
-
getWidgetName
Description copied from interface:I_CmsADEWidget
Returns the class name of the widget.- Specified by:
getWidgetName
in interfaceI_CmsADEWidget
- Overrides:
getWidgetName
in classA_CmsGalleryWidget
- Returns:
- the class name
- See Also:
-
newInstance
Description copied from interface:I_CmsWidget
Creates a duplicate of this widget instance.- Returns:
- a duplicate of this widget instance
- See Also:
-
showPreview
Description copied from class:A_CmsGalleryWidget
Returnstrue
if the preview button should be shown.- Specified by:
showPreview
in classA_CmsGalleryWidget
- Parameters:
value
- the current widget value- Returns:
true
if the preview button should be shown- See Also:
-