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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the search parameters of this tab.voiddeleteResource(String resourcePath) Deletes the given resource.Returns the result view type.booleanhasPreview(String resourceType) Returns if a preview is available for the given resource type.booleanReturns if resource entries in the search result are selectable.booleanReturns if a load results request is currently running.voidonClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event) Execute when the upload dialog is closed.voidWill be triggered when the bottom of the result list is reached by scrolling.voidWill be triggered when the tab is selected.voidSorts the list, if present.voidopenPreview(String resourcePath, String resourceType) Will be triggered when the result item is clicked.voidremoveParam(String paramKey) Removes the search parameter with the given key from the search object.voidsetResultViewType(String resultViewType) Stores the result view type.voidsetScope(org.opencms.ade.galleries.shared.CmsGallerySearchScope scope) Sets the search scope.voidUpdates 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_CmsTabHandlerClears the search parameters of this tab.- Specified by:
clearParamsin 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:
trueif 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:
trueif 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_CmsTabHandlerWill be triggered when the tab is selected.- Specified by:
onSelectionin classA_CmsTabHandler- See Also:
-
onSort
Description copied from class:A_CmsTabHandlerSorts the list, if present.- Specified by:
onSortin 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_CmsTabHandlerRemoves the search parameter with the given key from the search object.- Specified by:
removeParamin 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.
-