Package org.opencms.ade.galleries.shared
Class CmsGalleryConfiguration
java.lang.Object
org.opencms.ade.galleries.shared.CmsGalleryConfiguration
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsGalleryConfiguration
public class CmsGalleryConfiguration
extends Object
implements I_CmsGalleryConfiguration, com.google.gwt.user.client.rpc.IsSerializable
The gallery configuration.
-
Constructor Summary
ConstructorDescriptionConstructor.CmsGalleryConfiguration
(I_CmsGalleryConfiguration configuration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the currently selected element.Returns the gallery mode.Returns the start gallery path.Gets the prefix for the key used to store the last selected gallery.Returns the gallery type name.String[]
Returns the available gallery types.Returns the image format names.Returns the image formats.Returns the content locale.Gets the page id.Returns the path of the edited resource.Returns the available resource types.Returns the searchable types.Returns the start folder.Returns the start site.Gets the tab configuration.Gets the array of tab ids.Gets the tree token.Returns the upload folder.boolean
Returns true if the galleries should be selectable.boolean
Returns if files are selectable.boolean
Returns false if the results should not be selectable.boolean
Returns if the site selector should be shown.boolean
Returns if image formats should be used in preview.void
setCurrentElement
(String currentElement) Sets the currentElement.void
setGalleriesSelectable
(boolean galleriesSelectable) Enables or disables selection of galleries in the gallery tab.void
setGalleryMode
(I_CmsGalleryProviderConstants.GalleryMode galleryMode) Sets the galleryMode.void
setGalleryPath
(String galleryPath) Sets the galleryPath.void
setGalleryStoragePrefix
(String prefix) Sets the prefix for the key used to store the last selected gallery.void
setGalleryTypeName
(String galleryTypeName) Sets the gallery type name.void
setGalleryTypes
(String... galleryTypes) Sets the galleryTypes.void
setImageFormatNames
(String imageFormatNames) Sets the image format names.void
setImageFormats
(String imageFormats) Sets the image formats.void
Sets the locale.void
Sets the page id.void
setReferencePath
(String referencePath) Sets the referencePath.void
setResourceTypes
(List<String> resourceTypes) Sets the resourceTypes.void
setResultsSelectable
(boolean resultsSelectable) Disables selection of results if the given parameter is 'false'.void
setSearchTypes
(List<String> searchTypes) Sets the searchTypes.void
setShowSiteSelector
(boolean showSiteSelector) Sets the showSiteSelector.void
setStartFolder
(String startFolder) Sets the start folder.void
setStartSite
(String startSite) Sets the startSite.void
setTabConfiguration
(CmsGalleryTabConfiguration tabConfig) Sets the tab configuration.void
setUploadFolder
(String uploadFolder) Sets the upload folder.void
setUseFormats
(boolean useFormats) Sets the use formats flag.
-
Constructor Details
-
CmsGalleryConfiguration
public CmsGalleryConfiguration()Constructor.
-
-
Method Details
-
getCurrentElement
Description copied from interface:I_CmsGalleryConfiguration
Returns the currently selected element.- Specified by:
getCurrentElement
in interfaceI_CmsGalleryConfiguration
- Returns:
- the currently selected element
- See Also:
-
getGalleryMode
Description copied from interface:I_CmsGalleryConfiguration
Returns the gallery mode.- Specified by:
getGalleryMode
in interfaceI_CmsGalleryConfiguration
- Returns:
- the gallery mode
- See Also:
-
getGalleryPath
Description copied from interface:I_CmsGalleryConfiguration
Returns the start gallery path.- Specified by:
getGalleryPath
in interfaceI_CmsGalleryConfiguration
- Returns:
- the start gallery path
- See Also:
-
getGalleryStoragePrefix
Description copied from interface:I_CmsGalleryConfiguration
Gets the prefix for the key used to store the last selected gallery.- Specified by:
getGalleryStoragePrefix
in interfaceI_CmsGalleryConfiguration
- Returns:
- the prefix for the key used to store the last selected gallery
- See Also:
-
getGalleryTypeName
Description copied from interface:I_CmsGalleryConfiguration
Returns the gallery type name.- Specified by:
getGalleryTypeName
in interfaceI_CmsGalleryConfiguration
- Returns:
- the gallery type name
- See Also:
-
getGalleryTypes
Description copied from interface:I_CmsGalleryConfiguration
Returns the available gallery types.- Specified by:
getGalleryTypes
in interfaceI_CmsGalleryConfiguration
- Returns:
- the available gallery types
- See Also:
-
getImageFormatNames
Description copied from interface:I_CmsGalleryConfiguration
Returns the image format names.- Specified by:
getImageFormatNames
in interfaceI_CmsGalleryConfiguration
- Returns:
- the image format names
- See Also:
-
getImageFormats
Description copied from interface:I_CmsGalleryConfiguration
Returns the image formats.- Specified by:
getImageFormats
in interfaceI_CmsGalleryConfiguration
- Returns:
- the image formats
- See Also:
-
getLocale
Description copied from interface:I_CmsGalleryConfiguration
Returns the content locale.- Specified by:
getLocale
in interfaceI_CmsGalleryConfiguration
- Returns:
- the content locale
- See Also:
-
getPageId
Description copied from interface:I_CmsGalleryConfiguration
Gets the page id.- Specified by:
getPageId
in interfaceI_CmsGalleryConfiguration
- Returns:
- the page id
- See Also:
-
getReferencePath
Description copied from interface:I_CmsGalleryConfiguration
Returns the path of the edited resource.- Specified by:
getReferencePath
in interfaceI_CmsGalleryConfiguration
- Returns:
- the path of the edited resource
- See Also:
-
getResourceTypes
Description copied from interface:I_CmsGalleryConfiguration
Returns the available resource types.- Specified by:
getResourceTypes
in interfaceI_CmsGalleryConfiguration
- Returns:
- the available resource types
- See Also:
-
getSearchTypes
Description copied from interface:I_CmsGalleryConfiguration
Returns the searchable types.- Specified by:
getSearchTypes
in interfaceI_CmsGalleryConfiguration
- Returns:
- the searchable types
- See Also:
-
getStartFolder
Description copied from interface:I_CmsGalleryConfiguration
Returns the start folder.- Specified by:
getStartFolder
in interfaceI_CmsGalleryConfiguration
- Returns:
- the start folder
- See Also:
-
getStartSite
Description copied from interface:I_CmsGalleryConfiguration
Returns the start site.- Specified by:
getStartSite
in interfaceI_CmsGalleryConfiguration
- Returns:
- the start site
- See Also:
-
getTabConfiguration
Description copied from interface:I_CmsGalleryConfiguration
Gets the tab configuration.- Specified by:
getTabConfiguration
in interfaceI_CmsGalleryConfiguration
- Returns:
- the gallery tab configuration
- See Also:
-
getTabIds
Gets the array of tab ids.- Returns:
- the tab ids
-
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 interfaceI_CmsGalleryConfiguration
- Returns:
- the tree token
- See Also:
-
getUploadFolder
Description copied from interface:I_CmsGalleryConfiguration
Returns the upload folder.- Specified by:
getUploadFolder
in interfaceI_CmsGalleryConfiguration
- Returns:
- the upload folder
- See Also:
-
isGalleriesSelectable
Description copied from interface:I_CmsGalleryConfiguration
Returns true if the galleries should be selectable.- Specified by:
isGalleriesSelectable
in interfaceI_CmsGalleryConfiguration
- Returns:
- true if the galleries should be selectable
- See Also:
-
isIncludeFiles
Description copied from interface:I_CmsGalleryConfiguration
Returns if files are selectable.- Specified by:
isIncludeFiles
in interfaceI_CmsGalleryConfiguration
- Returns:
true
if files are selectable- See Also:
-
isResultsSelectable
Description copied from interface:I_CmsGalleryConfiguration
Returns false if the results should not be selectable.- Specified by:
isResultsSelectable
in interfaceI_CmsGalleryConfiguration
- Returns:
- false if the results should not be selectable
- See Also:
-
isShowSiteSelector
Description copied from interface:I_CmsGalleryConfiguration
Returns if the site selector should be shown.- Specified by:
isShowSiteSelector
in interfaceI_CmsGalleryConfiguration
- Returns:
true
if the site selector should be shown- See Also:
-
isUseFormats
Description copied from interface:I_CmsGalleryConfiguration
Returns if image formats should be used in preview.- Specified by:
isUseFormats
in interfaceI_CmsGalleryConfiguration
- Returns:
true
if image format should be used in preview- See Also:
-
setCurrentElement
Description copied from interface:I_CmsGalleryConfiguration
Sets the currentElement.- Specified by:
setCurrentElement
in interfaceI_CmsGalleryConfiguration
- Parameters:
currentElement
- the currentElement to set- See Also:
-
setGalleriesSelectable
Enables or disables selection of galleries in the gallery tab.- Parameters:
galleriesSelectable
- true if the galleries should be made selectable
-
setGalleryPath
Sets the galleryPath.- Parameters:
galleryPath
- the galleryPath to set
-
setGalleryStoragePrefix
Sets the prefix for the key used to store the last selected gallery.- Parameters:
prefix
- the new prefix
-
setGalleryTypeName
Sets the gallery type name.- Parameters:
galleryTypeName
- the gallery type name
-
setGalleryTypes
Sets the galleryTypes.- Parameters:
galleryTypes
- the galleryTypes to set
-
setImageFormatNames
Sets the image format names.- Parameters:
imageFormatNames
- the imageFormatNames to set
-
setImageFormats
Sets the image formats.- Parameters:
imageFormats
- the image formats to set
-
setLocale
Sets the locale.- Parameters:
locale
- the locale to set
-
setPageId
Sets the page id.- Parameters:
pageId
- the page id
-
setReferencePath
Sets the referencePath.- Parameters:
referencePath
- the referencePath to set
-
setResourceTypes
Sets the resourceTypes.- Parameters:
resourceTypes
- the resourceTypes to set
-
setResultsSelectable
Disables selection of results if the given parameter is 'false'.- Parameters:
resultsSelectable
- false if result selection should be disabled
-
setSearchTypes
Sets the searchTypes.- Parameters:
searchTypes
- the searchTypes to set
-
setShowSiteSelector
Sets the showSiteSelector.- Parameters:
showSiteSelector
- the showSiteSelector to set
-
setStartFolder
Sets the start folder.- Specified by:
setStartFolder
in interfaceI_CmsGalleryConfiguration
- Parameters:
startFolder
- the start folder
-
setStartSite
Sets the startSite.- Parameters:
startSite
- the startSite to set
-
setUploadFolder
Sets the upload folder.- Parameters:
uploadFolder
- the upload folder
-
setUseFormats
Sets the use formats flag.- Parameters:
useFormats
- the use formats flag to set
-