Class A_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
java.lang.Object
org.opencms.ade.galleries.client.preview.A_CmsPreviewHandler<T>
- Type Parameters:
T- the resource info bean type
- All Implemented Interfaces:
I_CmsPreviewHandler<T>,I_CmsPropertiesHandler
- Direct Known Subclasses:
CmsBinaryPreviewHandler,CmsImagePreviewHandler
public abstract class A_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
extends Object
implements I_CmsPreviewHandler<T>
Preview dialog handler.
Delegates the actions of the preview controller to the preview dialog.
- Since:
- 8.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TThe resource info.protected I_CmsResourcePreview<T> The resource preview instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the preview.com.google.gwt.user.client.ui.WidgetGets the additional widget to be displayed in the property tab.Returns the gallery dialog.voidsaveProperties(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Saves the properties.voidSelects the current resource and sets its path into the xml-content field or editor link, depending on the gallery mode.booleanReturns false, if the dialog may not be closed due to unsaved properties.voidDisplays the given resource info data.
-
Field Details
-
m_resourceInfo
The resource info. -
m_resourcePreview
protected I_CmsResourcePreview<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean> m_resourcePreviewThe resource preview instance.
-
-
Constructor Details
-
A_CmsPreviewHandler
Constructor.- Parameters:
resourcePreview- the resource preview instance
-
-
Method Details
-
closePreview
Description copied from interface:I_CmsPreviewHandlerCloses the preview.- Specified by:
closePreviewin interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>- See Also:
-
getAdditionalWidgetForPropertyTab
Description copied from interface:I_CmsPreviewHandlerGets the additional widget to be displayed in the property tab.- Specified by:
getAdditionalWidgetForPropertyTabin interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>- Returns:
- the additional widget to be displayed in the property tab
- See Also:
-
getGalleryDialog
Description copied from interface:I_CmsPreviewHandlerReturns the gallery dialog.- Specified by:
getGalleryDialogin interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>- Returns:
- the gallery dialog
- See Also:
-
saveProperties
public void saveProperties(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Description copied from interface:I_CmsPropertiesHandlerSaves the properties.- Specified by:
savePropertiesin interfaceI_CmsPropertiesHandler- Parameters:
properties- the properties to saveafterSaveCallback- the command to execute after saving the properties- See Also:
-
selectResource
Description copied from interface:I_CmsPropertiesHandlerSelects the current resource and sets its path into the xml-content field or editor link, depending on the gallery mode.- Specified by:
selectResourcein interfaceI_CmsPropertiesHandler- See Also:
-
setDataInEditor
Description copied from interface:I_CmsPreviewHandlerReturns false, if the dialog may not be closed due to unsaved properties.- Specified by:
setDataInEditorin interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>- Returns:
trueif the dialog may be closed- See Also:
-
showData
Description copied from interface:I_CmsPreviewHandlerDisplays the given resource info data.- Specified by:
showDatain interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>- Parameters:
resourceInfo- the resource info data- See Also:
-