Class CmsImageResourcePreview
java.lang.Object
org.opencms.ade.galleries.client.preview.A_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
org.opencms.ade.galleries.client.preview.CmsImageResourcePreview
- All Implemented Interfaces:
I_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
public final class CmsImageResourcePreview
extends A_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
The image resource preview.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.ade.galleries.client.preview.A_CmsResourcePreview
m_infoBean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionI_CmsPreviewHandler<org.opencms.ade.galleries.shared.CmsImageInfoBean> Returns the preview handler.Returns the preview dialog widget.Returns the preview name, should return the same as inI_CmsPreviewProvider.getPreviewName().Returns the site independent perma link.voidloadResourceInfo(String resourcePath) Loads the resource info and displays the retrieved data.voidopenPreview(String resourcePath, boolean disableSelection) Opens the preview for the given resource in the given gallery mode.voidRemoves the preview widget.voidsaveProperties(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Saves the changed properties.voidselectResource(String resourcePath, org.opencms.util.CmsUUID structureId, String title) Sets the selected resource in the opening editor for the given gallery mode.voidSets the current resource within the editor or xml-content.Methods inherited from class org.opencms.ade.galleries.client.preview.A_CmsResourcePreview
getGalleryDialog, getGalleryMode, getLocale, getResourcePath, getService, setDataInEditor, showData
-
Constructor Details
-
CmsImageResourcePreview
Constructor.- Parameters:
galleryDialog- the gallery dialog
-
-
Method Details
-
getHandler
Description copied from interface:I_CmsResourcePreviewReturns the preview handler.- Specified by:
getHandlerin interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Specified by:
getHandlerin classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Returns:
- the preview handler
- See Also:
-
getPreviewDialog
Description copied from interface:I_CmsResourcePreviewReturns the preview dialog widget.- Returns:
- the preview dialog widget
- See Also:
-
getPreviewName
Description copied from interface:I_CmsResourcePreviewReturns the preview name, should return the same as inI_CmsPreviewProvider.getPreviewName().- Returns:
- the preview name
- See Also:
-
getViewLink
Description copied from interface:I_CmsResourcePreviewReturns the site independent perma link.- Specified by:
getViewLinkin interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Overrides:
getViewLinkin classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Returns:
- the site independent link
- See Also:
-
loadResourceInfo
Description copied from interface:I_CmsResourcePreviewLoads the resource info and displays the retrieved data.- Parameters:
resourcePath- the resource path- See Also:
-
openPreview
Description copied from interface:I_CmsResourcePreviewOpens 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_CmsResourcePreviewRemoves the preview widget.- Specified by:
removePreviewin interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Overrides:
removePreviewin classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- See Also:
-
saveProperties
public void saveProperties(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Description copied from interface:I_CmsResourcePreviewSaves the changed properties.- Parameters:
properties- the changed propertiesafterSaveCallback- the command to execute after saving the properties- See Also:
-
selectResource
Description copied from interface:I_CmsResourcePreviewSets the selected resource in the opening editor for the given gallery mode.- Specified by:
selectResourcein interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Overrides:
selectResourcein classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Parameters:
resourcePath- the resource pathstructureId- the structure idtitle- the resource title- See Also:
-
setResource
Description copied from class:A_CmsResourcePreviewSets the current resource within the editor or xml-content.- Specified by:
setResourcein interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- Overrides:
setResourcein classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>- See Also:
-