Package org.opencms.ade.galleries.client
Class CmsResultsTabHandler
java.lang.Object
org.opencms.ade.galleries.client.A_CmsTabHandler
org.opencms.ade.galleries.client.CmsResultsTabHandler
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
,com.google.gwt.event.shared.EventHandler
The results tab handler.
This class receives event information from the results tab and delegates it to the gallery controller.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.ade.galleries.client.A_CmsTabHandler
m_controller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the search parameters of this tab.void
deleteResource
(String resourcePath) Deletes the given resource.Returns the result view type.boolean
hasPreview
(String resourceType) Returns if a preview is available for the given resource type.boolean
Returns if resource entries in the search result are selectable.boolean
Returns if a load results request is currently running.void
onClose
(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event) Execute when the upload dialog is closed.void
Will be triggered when the bottom of the result list is reached by scrolling.void
Will be triggered when the tab is selected.void
Sorts the list, if present.void
openPreview
(String resourcePath, String resourceType) Will be triggered when the result item is clicked.void
removeParam
(String paramKey) Removes the search parameter with the given key from the search object.void
setResultViewType
(String resultViewType) Stores the result view type.void
setScope
(org.opencms.ade.galleries.shared.CmsGallerySearchScope scope) Sets the search scope.void
Updates the result tab.Methods inherited from class org.opencms.ade.galleries.client.A_CmsTabHandler
addSearchChangeHandler, getGalleryInfo, getTypeInfo, onDeselection, selectResource, selectResultTab, setSearchQuery, updateIndex, updateSize
-
Constructor Details
-
CmsResultsTabHandler
Constructor.- Parameters:
controller
- the gallery controller
-
-
Method Details
-
clearParams
Description copied from class:A_CmsTabHandler
Clears the search parameters of this tab.- Specified by:
clearParams
in classA_CmsTabHandler
- See Also:
-
deleteResource
Deletes the given resource.- Parameters:
resourcePath
- the resource path of the resource to delete
-
getResultViewType
Returns the result view type.- Returns:
- the result view type
-
hasPreview
Returns if a preview is available for the given resource type.- Parameters:
resourceType
- the requested resource type- Returns:
true
if a preview is available for the given resource type
-
hasSelectResource
Returns if resource entries in the search result are selectable.- Returns:
- if resource entries in the search result are selectable
-
isLoading
Returns if a load results request is currently running.- Returns:
true
if a load results request is currently running
-
onScrollToBottom
Will be triggered when the bottom of the result list is reached by scrolling. -
onSelection
Description copied from class:A_CmsTabHandler
Will be triggered when the tab is selected.- Specified by:
onSelection
in classA_CmsTabHandler
- See Also:
-
onSort
Description copied from class:A_CmsTabHandler
Sorts the list, if present.- Specified by:
onSort
in classA_CmsTabHandler
- Parameters:
sortParams
- the sort parametersfilter
- the filter phrase- See Also:
-
openPreview
Will be triggered when the result item is clicked.- Parameters:
resourcePath
- the resource path of the resultresourceType
- the resource type
-
removeParam
Description copied from class:A_CmsTabHandler
Removes the search parameter with the given key from the search object.- Specified by:
removeParam
in classA_CmsTabHandler
- Parameters:
paramKey
- the parameter key- See Also:
-
setResultViewType
Stores the result view type.- Parameters:
resultViewType
- the result view type
-
updateResult
Updates the result tab.
-