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 TypeMethodDescriptionbooleanChecks if further user input is required and other wise sets the selected resource via the provided integrator functionssetLinkandsetImage.voidloadResourceInfo(String resourcePath) Loads the resource info and displays the retrieved data.voidRemoves the preview.voidsaveProperties(Map<String, String> properties) Saves the changed properties.voidsetResource(org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants.GalleryMode galleryMode) Sets the current resource within the editor or xml-content.voidCalls 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 functionssetLinkandsetImage. Returningtruewhen all data has been set and the dialog should be closed.- Returns:
truewhen 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
-