Package org.opencms.ade.galleries.client
Interface I_CmsGalleryHandler
-
- All Known Implementing Classes:
CmsGalleryPopup
public interface I_CmsGalleryHandler
A handler interface which allows the gallery dialog to interact with the context it is used in, e.g. the container page editor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
filterDnd(org.opencms.ade.galleries.shared.CmsResultItemBean resultBean)
This method is used to disable drag-and-drop for specific results.com.google.gwt.user.client.ui.Widget
getAdditionalTypeTabControl()
Gets an additional widget to display in the type tab.I_CmsAutoHider
getAutoHideParent()
Gets the auto-hide parent.CmsDNDHandler
getDndHandler()
Gets the drag-and-drop handler for the result list.void
processResultItem(CmsResultListItem item)
Processes a result list item.
-
-
-
Method Detail
-
filterDnd
boolean filterDnd(org.opencms.ade.galleries.shared.CmsResultItemBean resultBean)
This method is used to disable drag-and-drop for specific results.If this returns false, drag and drop should be disabled for the result (however, if true is returned, this does not automatically mean that drag and drop should be enabled.)
- Parameters:
resultBean
- the result for which drag-and-drop feasibility should be checked- Returns:
- false if DnD should be prohibited for the element, else true
-
getAdditionalTypeTabControl
com.google.gwt.user.client.ui.Widget getAdditionalTypeTabControl()
Gets an additional widget to display in the type tab.- Returns:
- the additional widget to display
-
getAutoHideParent
I_CmsAutoHider getAutoHideParent()
Gets the auto-hide parent.- Returns:
- the auto-hide parent
-
getDndHandler
CmsDNDHandler getDndHandler()
Gets the drag-and-drop handler for the result list.- Returns:
- the drag-and-drop handler
-
processResultItem
void processResultItem(CmsResultListItem item)
Processes a result list item.- Parameters:
item
- the item to process
-
-