Interface I_CmsPreviewController<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- Type Parameters:
T
- the resource info bean type
public interface I_CmsPreviewController<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
Interface for the preview controller.
- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if further user input is required and other wise sets the selected resource via the provided integrator functionssetLink
andsetImage
.void
loadResourceInfo
(String resourcePath) Loads the resource info and displays the retrieved data.void
Removes the preview.void
saveProperties
(Map<String, String> properties) Saves the changed properties.void
setResource
(org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode galleryMode) Sets the current resource within the editor or xml-content.void
Calls the preview handler to display the given data.
-
Method Details
-
closeGalleryDialog
boolean closeGalleryDialog()Checks if further user input is required and other wise sets the selected resource via the provided integrator functionssetLink
andsetImage
. Returningtrue
when all data has been set and the dialog should be closed.- Returns:
true
when all data has been set and the dialog should be closed
-
loadResourceInfo
Loads the resource info and displays the retrieved data.- Parameters:
resourcePath
- the resource path
-
removePreview
void removePreview()Removes the preview. -
saveProperties
Saves the changed properties.- Parameters:
properties
- the changed properties
-
showData
Calls the preview handler to display the given data.- Parameters:
resourceInfo
- the resource info data
-