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 java.lang.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
Fields Modifier and Type Field Description protected T
m_resourceInfo
The resource info.protected I_CmsResourcePreview<T>
m_resourcePreview
The resource preview instance.
-
Constructor Summary
Constructors Constructor Description A_CmsPreviewHandler(I_CmsResourcePreview<T> resourcePreview)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closePreview()
Closes the preview.com.google.gwt.user.client.ui.Widget
getAdditionalWidgetForPropertyTab()
Gets the additional widget to be displayed in the property tab.CmsGalleryDialog
getGalleryDialog()
Returns the gallery dialog.void
saveProperties(java.util.Map<java.lang.String,java.lang.String> properties, com.google.gwt.user.client.Command afterSaveCallback)
Saves the properties.void
selectResource()
Selects the current resource and sets its path into the xml-content field or editor link, depending on the gallery mode.boolean
setDataInEditor()
Returns false, if the dialog may not be closed due to unsaved properties.void
showData(T resourceInfo)
Displays the given resource info data.
-
-
-
Field Detail
-
m_resourceInfo
protected T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean m_resourceInfo
The resource info.
-
m_resourcePreview
protected I_CmsResourcePreview<T extends org.opencms.ade.galleries.shared.CmsResourceInfoBean> m_resourcePreview
The resource preview instance.
-
-
Constructor Detail
-
A_CmsPreviewHandler
public A_CmsPreviewHandler(I_CmsResourcePreview<T> resourcePreview)
Constructor.- Parameters:
resourcePreview
- the resource preview instance
-
-
Method Detail
-
closePreview
public void 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:
I_CmsPreviewHandler.closePreview()
-
getAdditionalWidgetForPropertyTab
public com.google.gwt.user.client.ui.Widget 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:
I_CmsPreviewHandler.getAdditionalWidgetForPropertyTab()
-
getGalleryDialog
public CmsGalleryDialog 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:
I_CmsPreviewHandler.getGalleryDialog()
-
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_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:
I_CmsPropertiesHandler.saveProperties(java.util.Map, com.google.gwt.user.client.Command)
-
selectResource
public void 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:
I_CmsPropertiesHandler.selectResource()
-
setDataInEditor
public boolean 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:
I_CmsPreviewHandler.setDataInEditor()
-
showData
public void showData(T resourceInfo)
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:
I_CmsPreviewHandler.showData(org.opencms.ade.galleries.shared.CmsResourceInfoBean)
-
-