org.opencms.widgets
Class CmsDownloadGalleryWidget

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

public class CmsDownloadGalleryWidget
extends A_CmsGalleryWidget

Provides a widget that allows access to the available OpenCms download galleries, for use on a widget dialog.

Since:
6.0.0
Version:
$Revision: 1.14 $
Author:
Andreas Zahner

Field Summary
 
Fields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX
 
Constructor Summary
CmsDownloadGalleryWidget()
          Creates a new download gallery widget.
CmsDownloadGalleryWidget(java.lang.String configuration)
          Creates a new download 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".
 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
getDialogIncludes, getDialogInitCall, getDialogInitMethod, getDialogWidget
 
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
 

Constructor Detail

CmsDownloadGalleryWidget

public CmsDownloadGalleryWidget()
Creates a new download gallery widget.


CmsDownloadGalleryWidget

public CmsDownloadGalleryWidget(java.lang.String configuration)
Creates a new download 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()

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)