Class CmsBinaryResourcePreview
java.lang.Object
org.opencms.ade.galleries.client.preview.A_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
org.opencms.ade.galleries.client.preview.CmsBinaryResourcePreview
- All Implemented Interfaces:
I_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
public final class CmsBinaryResourcePreview
extends A_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
The binary resource preview.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.ade.galleries.client.preview.A_CmsResourcePreview
m_infoBean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the preview handler.Returns the preview dialog widget.Returns the preview name, should return the same as inI_CmsPreviewProvider.getPreviewName()
.void
loadResourceInfo
(String resourcePath) Loads the resource info and displays the retrieved data.void
openPreview
(String resourcePath, boolean disableSelection) Opens the preview for the given resource in the given gallery mode.void
Removes the preview widget.void
saveProperties
(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Saves the changed properties.Methods inherited from class org.opencms.ade.galleries.client.preview.A_CmsResourcePreview
getGalleryDialog, getGalleryMode, getLocale, getResourcePath, getService, getViewLink, selectResource, setDataInEditor, setResource, showData
-
Constructor Details
-
CmsBinaryResourcePreview
Constructor.- Parameters:
galleryDialog
- the gallery dialog instance
-
-
Method Details
-
getHandler
Description copied from interface:I_CmsResourcePreview
Returns the preview handler.- Specified by:
getHandler
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- Specified by:
getHandler
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- Returns:
- the preview handler
- See Also:
-
getPreviewDialog
Description copied from interface:I_CmsResourcePreview
Returns the preview dialog widget.- Returns:
- the preview dialog widget
- See Also:
-
getPreviewName
Description copied from interface:I_CmsResourcePreview
Returns the preview name, should return the same as inI_CmsPreviewProvider.getPreviewName()
.- Returns:
- the preview name
- See Also:
-
loadResourceInfo
Loads the resource info and displays the retrieved data.- Parameters:
resourcePath
- the resource path
-
openPreview
Description copied from interface:I_CmsResourcePreview
Opens the preview for the given resource in the given gallery mode.- Parameters:
resourcePath
- the resource pathdisableSelection
- if the selection from the preview should be disabled- See Also:
-
removePreview
Description copied from interface:I_CmsResourcePreview
Removes the preview widget.- Specified by:
removePreview
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- Overrides:
removePreview
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- See Also:
-
saveProperties
public void saveProperties(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Description copied from interface:I_CmsResourcePreview
Saves the changed properties.- Parameters:
properties
- the changed propertiesafterSaveCallback
- the command to execute after saving the properties- See Also:
-