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
Modifier and TypeFieldDescriptionprotected T
The resource info.protected I_CmsResourcePreview<T>
The resource preview instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the preview.com.google.gwt.user.client.ui.Widget
Gets the additional widget to be displayed in the property tab.Returns the gallery dialog.void
saveProperties
(Map<String, String> properties, com.google.gwt.user.client.Command afterSaveCallback) Saves the properties.void
Selects the current resource and sets its path into the xml-content field or editor link, depending on the gallery mode.boolean
Returns false, if the dialog may not be closed due to unsaved properties.void
Displays 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_CmsPreviewHandler
Closes the preview.- Specified by:
closePreview
in interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- See Also:
-
getAdditionalWidgetForPropertyTab
Description copied from interface:I_CmsPreviewHandler
Gets the additional widget to be displayed in the property tab.- Specified by:
getAdditionalWidgetForPropertyTab
in 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_CmsPreviewHandler
Returns the gallery dialog.- Specified by:
getGalleryDialog
in 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_CmsPropertiesHandler
Saves the properties.- Specified by:
saveProperties
in interfaceI_CmsPropertiesHandler
- Parameters:
properties
- the properties to saveafterSaveCallback
- the command to execute after saving the properties- See Also:
-
selectResource
Description copied from interface:I_CmsPropertiesHandler
Selects the current resource and sets its path into the xml-content field or editor link, depending on the gallery mode.- Specified by:
selectResource
in interfaceI_CmsPropertiesHandler
- See Also:
-
setDataInEditor
Description copied from interface:I_CmsPreviewHandler
Returns false, if the dialog may not be closed due to unsaved properties.- Specified by:
setDataInEditor
in interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- Returns:
true
if the dialog may be closed- See Also:
-
showData
Description copied from interface:I_CmsPreviewHandler
Displays the given resource info data.- Specified by:
showData
in interfaceI_CmsPreviewHandler<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean>
- Parameters:
resourceInfo
- the resource info data- See Also:
-