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
ConstructorsConstructorDescriptionConstructor.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.booleanReturns true if the galleries should be selectable.booleanReturns if files are selectable.booleanReturns false if the results should not be selectable.booleanReturns if the site selector should be shown.booleanReturns if image formats should be used in preview.voidsetCurrentElement(String currentElement) Sets the currentElement.voidsetGalleriesSelectable(boolean galleriesSelectable) Enables or disables selection of galleries in the gallery tab.voidsetGalleryMode(I_CmsGalleryProviderConstants.GalleryMode galleryMode) Sets the galleryMode.voidsetGalleryPath(String galleryPath) Sets the galleryPath.voidsetGalleryStoragePrefix(String prefix) Sets the prefix for the key used to store the last selected gallery.voidsetGalleryTypeName(String galleryTypeName) Sets the gallery type name.voidsetGalleryTypes(String... galleryTypes) Sets the galleryTypes.voidsetImageFormatNames(String imageFormatNames) Sets the image format names.voidsetImageFormats(String imageFormats) Sets the image formats.voidSets the locale.voidSets the page id.voidsetReferencePath(String referencePath) Sets the referencePath.voidsetResourceTypes(List<String> resourceTypes) Sets the resourceTypes.voidsetResultsSelectable(boolean resultsSelectable) Disables selection of results if the given parameter is 'false'.voidsetSearchTypes(List<String> searchTypes) Sets the searchTypes.voidsetShowSiteSelector(boolean showSiteSelector) Sets the showSiteSelector.voidsetStartFolder(String startFolder) Sets the start folder.voidsetStartSite(String startSite) Sets the startSite.voidsetTabConfiguration(CmsGalleryTabConfiguration tabConfig) Sets the tab configuration.voidsetUploadFolder(String uploadFolder) Sets the upload folder.voidsetUseFormats(boolean useFormats) Sets the use formats flag.
-
Constructor Details
-
CmsGalleryConfiguration
public CmsGalleryConfiguration()Constructor.
-
-
Method Details
-
getCurrentElement
Description copied from interface:I_CmsGalleryConfigurationReturns the currently selected element.- Specified by:
getCurrentElementin interfaceI_CmsGalleryConfiguration- Returns:
- the currently selected element
- See Also:
-
getGalleryMode
Description copied from interface:I_CmsGalleryConfigurationReturns the gallery mode.- Specified by:
getGalleryModein interfaceI_CmsGalleryConfiguration- Returns:
- the gallery mode
- See Also:
-
getGalleryPath
Description copied from interface:I_CmsGalleryConfigurationReturns the start gallery path.- Specified by:
getGalleryPathin interfaceI_CmsGalleryConfiguration- Returns:
- the start gallery path
- See Also:
-
getGalleryStoragePrefix
Description copied from interface:I_CmsGalleryConfigurationGets the prefix for the key used to store the last selected gallery.- Specified by:
getGalleryStoragePrefixin interfaceI_CmsGalleryConfiguration- Returns:
- the prefix for the key used to store the last selected gallery
- See Also:
-
getGalleryTypeName
Description copied from interface:I_CmsGalleryConfigurationReturns the gallery type name.- Specified by:
getGalleryTypeNamein interfaceI_CmsGalleryConfiguration- Returns:
- the gallery type name
- See Also:
-
getGalleryTypes
Description copied from interface:I_CmsGalleryConfigurationReturns the available gallery types.- Specified by:
getGalleryTypesin interfaceI_CmsGalleryConfiguration- Returns:
- the available gallery types
- See Also:
-
getImageFormatNames
Description copied from interface:I_CmsGalleryConfigurationReturns the image format names.- Specified by:
getImageFormatNamesin interfaceI_CmsGalleryConfiguration- Returns:
- the image format names
- See Also:
-
getImageFormats
Description copied from interface:I_CmsGalleryConfigurationReturns the image formats.- Specified by:
getImageFormatsin interfaceI_CmsGalleryConfiguration- Returns:
- the image formats
- See Also:
-
getLocale
Description copied from interface:I_CmsGalleryConfigurationReturns the content locale.- Specified by:
getLocalein interfaceI_CmsGalleryConfiguration- Returns:
- the content locale
- See Also:
-
getPageId
Description copied from interface:I_CmsGalleryConfigurationGets the page id.- Specified by:
getPageIdin interfaceI_CmsGalleryConfiguration- Returns:
- the page id
- See Also:
-
getReferencePath
Description copied from interface:I_CmsGalleryConfigurationReturns the path of the edited resource.- Specified by:
getReferencePathin interfaceI_CmsGalleryConfiguration- Returns:
- the path of the edited resource
- See Also:
-
getResourceTypes
Description copied from interface:I_CmsGalleryConfigurationReturns the available resource types.- Specified by:
getResourceTypesin interfaceI_CmsGalleryConfiguration- Returns:
- the available resource types
- See Also:
-
getSearchTypes
Description copied from interface:I_CmsGalleryConfigurationReturns the searchable types.- Specified by:
getSearchTypesin interfaceI_CmsGalleryConfiguration- Returns:
- the searchable types
- See Also:
-
getStartFolder
Description copied from interface:I_CmsGalleryConfigurationReturns the start folder.- Specified by:
getStartFolderin interfaceI_CmsGalleryConfiguration- Returns:
- the start folder
- See Also:
-
getStartSite
Description copied from interface:I_CmsGalleryConfigurationReturns the start site.- Specified by:
getStartSitein interfaceI_CmsGalleryConfiguration- Returns:
- the start site
- See Also:
-
getTabConfiguration
Description copied from interface:I_CmsGalleryConfigurationGets the tab configuration.- Specified by:
getTabConfigurationin 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_CmsGalleryConfigurationGets 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:
getTreeTokenin interfaceI_CmsGalleryConfiguration- Returns:
- the tree token
- See Also:
-
getUploadFolder
Description copied from interface:I_CmsGalleryConfigurationReturns the upload folder.- Specified by:
getUploadFolderin interfaceI_CmsGalleryConfiguration- Returns:
- the upload folder
- See Also:
-
isGalleriesSelectable
Description copied from interface:I_CmsGalleryConfigurationReturns true if the galleries should be selectable.- Specified by:
isGalleriesSelectablein interfaceI_CmsGalleryConfiguration- Returns:
- true if the galleries should be selectable
- See Also:
-
isIncludeFiles
Description copied from interface:I_CmsGalleryConfigurationReturns if files are selectable.- Specified by:
isIncludeFilesin interfaceI_CmsGalleryConfiguration- Returns:
trueif files are selectable- See Also:
-
isResultsSelectable
Description copied from interface:I_CmsGalleryConfigurationReturns false if the results should not be selectable.- Specified by:
isResultsSelectablein interfaceI_CmsGalleryConfiguration- Returns:
- false if the results should not be selectable
- See Also:
-
isShowSiteSelector
Description copied from interface:I_CmsGalleryConfigurationReturns if the site selector should be shown.- Specified by:
isShowSiteSelectorin interfaceI_CmsGalleryConfiguration- Returns:
trueif the site selector should be shown- See Also:
-
isUseFormats
Description copied from interface:I_CmsGalleryConfigurationReturns if image formats should be used in preview.- Specified by:
isUseFormatsin interfaceI_CmsGalleryConfiguration- Returns:
trueif image format should be used in preview- See Also:
-
setCurrentElement
Description copied from interface:I_CmsGalleryConfigurationSets the currentElement.- Specified by:
setCurrentElementin 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:
setStartFolderin 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
-