org.opencms.widgets
Class CmsLinkGalleryWidget

java.lang.Object
  extended by org.opencms.widgets.A_CmsWidget
      extended by org.opencms.widgets.A_CmsGalleryWidget
          extended by org.opencms.widgets.CmsLinkGalleryWidget
All Implemented Interfaces:
I_CmsADEWidget, I_CmsWidget

public class CmsLinkGalleryWidget
extends A_CmsGalleryWidget

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
CmsLinkGalleryWidget()
          Creates a new external link gallery widget.
CmsLinkGalleryWidget(java.lang.String configuration)
          Creates a new external link gallery widget with the given configuration.
 
Method Summary
 java.lang.String getNameLower()
          Returns the lower case name of the gallery, for example "html".
 java.lang.String getNameUpper()
          Returns the upper case name of the gallery, for example "Html".
 java.lang.String getWidgetName()
          Returns the class name of the widget.
 I_CmsWidget newInstance()
          Creates a duplicate of this widget instance.
 boolean showPreview(java.lang.String value)
          Returns true if the preview button should be shown.
 
Methods inherited from class org.opencms.widgets.A_CmsGalleryWidget
getConfiguration, getCssResourceLinks, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getDialogWidget, getInitCall, getJavaScriptResourceLinks, 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 Detail

CmsLinkGalleryWidget

public CmsLinkGalleryWidget()
Creates a new external link gallery widget.


CmsLinkGalleryWidget

public CmsLinkGalleryWidget(java.lang.String configuration)
Creates a new external link gallery widget with the given configuration.

Parameters:
configuration - the configuration to use
Method Detail

getNameLower

public java.lang.String getNameLower()
Description copied from class: A_CmsGalleryWidget
Returns the lower case name of the gallery, for example "html".

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

getNameUpper

public java.lang.String getNameUpper()
Description copied from class: A_CmsGalleryWidget
Returns the upper case name of the gallery, for example "Html".

Specified by:
getNameUpper in class A_CmsGalleryWidget
Returns:
the upper case name of the gallery
See Also:
A_CmsGalleryWidget.getNameUpper()

getWidgetName

public java.lang.String getWidgetName()
Description copied from interface: I_CmsADEWidget
Returns the class name of the widget.

Specified by:
getWidgetName in interface I_CmsADEWidget
Overrides:
getWidgetName in class A_CmsGalleryWidget
Returns:
the class name
See Also:
I_CmsADEWidget.getWidgetName()

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()

showPreview

public boolean showPreview(java.lang.String value)
Description copied from class: A_CmsGalleryWidget
Returns true if the preview button should be shown.

Specified by:
showPreview in class A_CmsGalleryWidget
Parameters:
value - the current widget value
Returns:
true if the preview button should be shown
See Also:
A_CmsGalleryWidget.showPreview(java.lang.String)