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 Constructor Description CmsImageResourcePreview(CmsGalleryDialog galleryDialog)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I_CmsPreviewHandler<org.opencms.ade.galleries.shared.CmsImageInfoBean>
getHandler()
Returns the preview handler.CmsImagePreviewDialog
getPreviewDialog()
Returns the preview dialog widget.java.lang.String
getPreviewName()
Returns the preview name, should return the same as inI_CmsPreviewProvider.getPreviewName()
.java.lang.String
getViewLink()
Returns the site independent perma link.void
loadResourceInfo(java.lang.String resourcePath)
Loads the resource info and displays the retrieved data.void
openPreview(java.lang.String resourcePath, boolean disableSelection)
Opens the preview for the given resource in the given gallery mode.void
removePreview()
Removes the preview widget.void
saveProperties(java.util.Map<java.lang.String,java.lang.String> properties, com.google.gwt.user.client.Command afterSaveCallback)
Saves the changed properties.void
selectResource(java.lang.String resourcePath, org.opencms.util.CmsUUID structureId, java.lang.String title)
Sets the selected resource in the opening editor for the given gallery mode.void
setResource()
Sets 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 Detail
-
CmsImageResourcePreview
public CmsImageResourcePreview(CmsGalleryDialog galleryDialog)
Constructor.- Parameters:
galleryDialog
- the gallery dialog
-
-
Method Detail
-
getHandler
public I_CmsPreviewHandler<org.opencms.ade.galleries.shared.CmsImageInfoBean> getHandler()
Description copied from interface:I_CmsResourcePreview
Returns the preview handler.- Specified by:
getHandler
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Specified by:
getHandler
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Returns:
- the preview handler
- See Also:
A_CmsResourcePreview.getHandler()
-
getPreviewDialog
public CmsImagePreviewDialog getPreviewDialog()
Description copied from interface:I_CmsResourcePreview
Returns the preview dialog widget.- Returns:
- the preview dialog widget
- See Also:
I_CmsResourcePreview.getPreviewDialog()
-
getPreviewName
public java.lang.String 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:
I_CmsResourcePreview.getPreviewName()
-
getViewLink
public java.lang.String getViewLink()
Description copied from interface:I_CmsResourcePreview
Returns the site independent perma link.- Specified by:
getViewLink
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Overrides:
getViewLink
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Returns:
- the site independent link
- See Also:
A_CmsResourcePreview.getViewLink()
-
loadResourceInfo
public void loadResourceInfo(java.lang.String resourcePath)
Description copied from interface:I_CmsResourcePreview
Loads the resource info and displays the retrieved data.- Parameters:
resourcePath
- the resource path- See Also:
I_CmsResourcePreview.loadResourceInfo(java.lang.String)
-
openPreview
public void openPreview(java.lang.String resourcePath, boolean disableSelection)
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:
I_CmsResourcePreview.openPreview(java.lang.String, boolean)
-
removePreview
public void removePreview()
Description copied from interface:I_CmsResourcePreview
Removes the preview widget.- Specified by:
removePreview
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Overrides:
removePreview
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- See Also:
A_CmsResourcePreview.removePreview()
-
saveProperties
public void saveProperties(java.util.Map<java.lang.String,java.lang.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:
I_CmsResourcePreview.saveProperties(java.util.Map, com.google.gwt.user.client.Command)
-
selectResource
public void selectResource(java.lang.String resourcePath, org.opencms.util.CmsUUID structureId, java.lang.String title)
Description copied from interface:I_CmsResourcePreview
Sets the selected resource in the opening editor for the given gallery mode.- Specified by:
selectResource
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Overrides:
selectResource
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Parameters:
resourcePath
- the resource pathstructureId
- the structure idtitle
- the resource title- See Also:
A_CmsResourcePreview.selectResource(java.lang.String, org.opencms.util.CmsUUID, java.lang.String)
-
setResource
public void setResource()
Description copied from class:A_CmsResourcePreview
Sets the current resource within the editor or xml-content.- Specified by:
setResource
in interfaceI_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- Overrides:
setResource
in classA_CmsResourcePreview<org.opencms.ade.galleries.shared.CmsImageInfoBean>
- See Also:
A_CmsResourcePreview.setResource()
-
-