org.opencms.ade.galleries.shared
Class CmsGalleryConfiguration

java.lang.Object
  extended by org.opencms.ade.galleries.shared.CmsGalleryConfiguration
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, I_CmsGalleryConfiguration

public class CmsGalleryConfiguration
extends java.lang.Object
implements I_CmsGalleryConfiguration, com.google.gwt.user.client.rpc.IsSerializable

The gallery configuration.


Constructor Summary
CmsGalleryConfiguration()
          Constructor.
CmsGalleryConfiguration(I_CmsGalleryConfiguration configuration)
          Constructor.
 
Method Summary
 java.lang.String getCurrentElement()
          Returns the currently selected element.
 I_CmsGalleryProviderConstants.GalleryMode getGalleryMode()
          Returns the gallery mode.
 java.lang.String getGalleryPath()
          Returns the start gallery path.
 java.lang.String[] getGalleryTypes()
          Returns the available gallery types.
 java.lang.String getImageFormatNames()
          Returns the image format names.
 java.lang.String getImageFormats()
          Returns the image formats.
 java.lang.String getLocale()
          Returns the content locale.
 java.lang.String getReferencePath()
          Returns the path of the edited resource.
 java.util.List<java.lang.String> getResourceTypes()
          Returns the available resource types.
 java.util.List<java.lang.String> getSearchTypes()
          Returns the searchable types.
 java.lang.String getStartFolder()
          Returns the start folder.
 java.lang.String getStartSite()
          Returns the start site.
 I_CmsGalleryProviderConstants.GalleryTabId[] getTabIds()
          Returns the tab id's.
 java.lang.String getTreeToken()
          Gets the tree token.
 boolean isIncludeFiles()
          Returns if files are selectable.
 boolean isShowSiteSelector()
          Returns if the site selector should be shown.
 boolean isUseFormats()
          Returns if image formats should be used in preview.
 void setCurrentElement(java.lang.String currentElement)
          Sets the currentElement.
 void setGalleryMode(I_CmsGalleryProviderConstants.GalleryMode galleryMode)
          Sets the galleryMode.
 void setGalleryPath(java.lang.String galleryPath)
          Sets the galleryPath.
 void setGalleryTypes(java.lang.String... galleryTypes)
          Sets the galleryTypes.
 void setImageFormatNames(java.lang.String imageFormatNames)
          Sets the image format names.
 void setImageFormats(java.lang.String imageFormats)
          Sets the image formats.
 void setLocale(java.lang.String locale)
          Sets the locale.
 void setReferencePath(java.lang.String referencePath)
          Sets the referencePath.
 void setResourceTypes(java.util.List<java.lang.String> resourceTypes)
          Sets the resourceTypes.
 void setSearchTypes(java.util.List<java.lang.String> searchTypes)
          Sets the searchTypes.
 void setShowSiteSelector(boolean showSiteSelector)
          Sets the showSiteSelector.
 void setStartFolder(java.lang.String startFolder)
          Sets the start folder.
 void setStartSite(java.lang.String startSite)
          Sets the startSite.
 void setTabIds(I_CmsGalleryProviderConstants.GalleryTabId... tabIds)
          Sets the tab id's.
 void setUseFormats(boolean useFormats)
          Sets the use formats flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsGalleryConfiguration

public CmsGalleryConfiguration()
Constructor.


CmsGalleryConfiguration

public CmsGalleryConfiguration(I_CmsGalleryConfiguration configuration)
Constructor.

Parameters:
configuration - the initial configuration
Method Detail

getCurrentElement

public java.lang.String getCurrentElement()
Description copied from interface: I_CmsGalleryConfiguration
Returns the currently selected element.

Specified by:
getCurrentElement in interface I_CmsGalleryConfiguration
Returns:
the currently selected element
See Also:
I_CmsGalleryConfiguration.getCurrentElement()

getGalleryMode

public I_CmsGalleryProviderConstants.GalleryMode getGalleryMode()
Description copied from interface: I_CmsGalleryConfiguration
Returns the gallery mode.

Specified by:
getGalleryMode in interface I_CmsGalleryConfiguration
Returns:
the gallery mode
See Also:
I_CmsGalleryConfiguration.getGalleryMode()

getGalleryPath

public java.lang.String getGalleryPath()
Description copied from interface: I_CmsGalleryConfiguration
Returns the start gallery path.

Specified by:
getGalleryPath in interface I_CmsGalleryConfiguration
Returns:
the start gallery path
See Also:
I_CmsGalleryConfiguration.getGalleryPath()

getGalleryTypes

public java.lang.String[] getGalleryTypes()
Description copied from interface: I_CmsGalleryConfiguration
Returns the available gallery types.

Specified by:
getGalleryTypes in interface I_CmsGalleryConfiguration
Returns:
the available gallery types
See Also:
I_CmsGalleryConfiguration.getGalleryTypes()

getImageFormatNames

public java.lang.String getImageFormatNames()
Description copied from interface: I_CmsGalleryConfiguration
Returns the image format names.

Specified by:
getImageFormatNames in interface I_CmsGalleryConfiguration
Returns:
the image format names
See Also:
I_CmsGalleryConfiguration.getImageFormatNames()

getImageFormats

public java.lang.String getImageFormats()
Description copied from interface: I_CmsGalleryConfiguration
Returns the image formats.

Specified by:
getImageFormats in interface I_CmsGalleryConfiguration
Returns:
the image formats
See Also:
I_CmsGalleryConfiguration.getImageFormats()

getLocale

public java.lang.String getLocale()
Description copied from interface: I_CmsGalleryConfiguration
Returns the content locale.

Specified by:
getLocale in interface I_CmsGalleryConfiguration
Returns:
the content locale
See Also:
I_CmsGalleryConfiguration.getLocale()

getReferencePath

public java.lang.String getReferencePath()
Description copied from interface: I_CmsGalleryConfiguration
Returns the path of the edited resource.

Specified by:
getReferencePath in interface I_CmsGalleryConfiguration
Returns:
the path of the edited resource
See Also:
I_CmsGalleryConfiguration.getReferencePath()

getResourceTypes

public java.util.List<java.lang.String> getResourceTypes()
Description copied from interface: I_CmsGalleryConfiguration
Returns the available resource types.

Specified by:
getResourceTypes in interface I_CmsGalleryConfiguration
Returns:
the available resource types
See Also:
I_CmsGalleryConfiguration.getResourceTypes()

getSearchTypes

public java.util.List<java.lang.String> getSearchTypes()
Description copied from interface: I_CmsGalleryConfiguration
Returns the searchable types.

Specified by:
getSearchTypes in interface I_CmsGalleryConfiguration
Returns:
the searchable types
See Also:
I_CmsGalleryConfiguration.getSearchTypes()

getStartFolder

public java.lang.String getStartFolder()
Description copied from interface: I_CmsGalleryConfiguration
Returns the start folder.

Specified by:
getStartFolder in interface I_CmsGalleryConfiguration
Returns:
the start folder
See Also:
I_CmsGalleryConfiguration.getStartFolder()

getStartSite

public java.lang.String getStartSite()
Description copied from interface: I_CmsGalleryConfiguration
Returns the start site.

Specified by:
getStartSite in interface I_CmsGalleryConfiguration
Returns:
the start site
See Also:
I_CmsGalleryConfiguration.getStartSite()

getTabIds

public I_CmsGalleryProviderConstants.GalleryTabId[] getTabIds()
Description copied from interface: I_CmsGalleryConfiguration
Returns the tab id's.

Specified by:
getTabIds in interface I_CmsGalleryConfiguration
Returns:
the tab id's
See Also:
I_CmsGalleryConfiguration.getTabIds()

getTreeToken

public java.lang.String getTreeToken()
Description copied from interface: I_CmsGalleryConfiguration
Gets the tree token.

The tree token is used to save/load tree opening states for tree tabs in the gallery dialog. If two widget instances use different tree tokens, opening or closing tree entries in one will not effect the tree opening state of the other.

Specified by:
getTreeToken in interface I_CmsGalleryConfiguration
Returns:
the tree token
See Also:
I_CmsGalleryConfiguration.getTreeToken()

isIncludeFiles

public boolean isIncludeFiles()
Description copied from interface: I_CmsGalleryConfiguration
Returns if files are selectable.

Specified by:
isIncludeFiles in interface I_CmsGalleryConfiguration
Returns:
true if files are selectable
See Also:
I_CmsGalleryConfiguration.isIncludeFiles()

isShowSiteSelector

public boolean isShowSiteSelector()
Description copied from interface: I_CmsGalleryConfiguration
Returns if the site selector should be shown.

Specified by:
isShowSiteSelector in interface I_CmsGalleryConfiguration
Returns:
true if the site selector should be shown
See Also:
I_CmsGalleryConfiguration.isShowSiteSelector()

isUseFormats

public boolean isUseFormats()
Description copied from interface: I_CmsGalleryConfiguration
Returns if image formats should be used in preview.

Specified by:
isUseFormats in interface I_CmsGalleryConfiguration
Returns:
true if image format should be used in preview
See Also:
I_CmsGalleryConfiguration.isUseFormats()

setCurrentElement

public void setCurrentElement(java.lang.String currentElement)
Description copied from interface: I_CmsGalleryConfiguration
Sets the currentElement.

Specified by:
setCurrentElement in interface I_CmsGalleryConfiguration
Parameters:
currentElement - the currentElement to set
See Also:
I_CmsGalleryConfiguration.setCurrentElement(java.lang.String)

setGalleryMode

public void setGalleryMode(I_CmsGalleryProviderConstants.GalleryMode galleryMode)
Sets the galleryMode.

Parameters:
galleryMode - the galleryMode to set

setGalleryPath

public void setGalleryPath(java.lang.String galleryPath)
Sets the galleryPath.

Parameters:
galleryPath - the galleryPath to set

setGalleryTypes

public void setGalleryTypes(java.lang.String... galleryTypes)
Sets the galleryTypes.

Parameters:
galleryTypes - the galleryTypes to set

setImageFormatNames

public void setImageFormatNames(java.lang.String imageFormatNames)
Sets the image format names.

Parameters:
imageFormatNames - the imageFormatNames to set

setImageFormats

public void setImageFormats(java.lang.String imageFormats)
Sets the image formats.

Parameters:
imageFormats - the image formats to set

setLocale

public void setLocale(java.lang.String locale)
Sets the locale.

Parameters:
locale - the locale to set

setReferencePath

public void setReferencePath(java.lang.String referencePath)
Sets the referencePath.

Parameters:
referencePath - the referencePath to set

setResourceTypes

public void setResourceTypes(java.util.List<java.lang.String> resourceTypes)
Sets the resourceTypes.

Parameters:
resourceTypes - the resourceTypes to set

setSearchTypes

public void setSearchTypes(java.util.List<java.lang.String> searchTypes)
Sets the searchTypes.

Parameters:
searchTypes - the searchTypes to set

setShowSiteSelector

public void setShowSiteSelector(boolean showSiteSelector)
Sets the showSiteSelector.

Parameters:
showSiteSelector - the showSiteSelector to set

setStartFolder

public void setStartFolder(java.lang.String startFolder)
Sets the start folder.

Parameters:
startFolder - the start folder

setStartSite

public void setStartSite(java.lang.String startSite)
Sets the startSite.

Parameters:
startSite - the startSite to set

setTabIds

public void setTabIds(I_CmsGalleryProviderConstants.GalleryTabId... tabIds)
Sets the tab id's.

Parameters:
tabIds - the tab id's to set

setUseFormats

public void setUseFormats(boolean useFormats)
Sets the use formats flag.

Parameters:
useFormats - the use formats flag to set