Class CmsResultsTabHandler

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.EventHandler

    public class CmsResultsTabHandler
    extends A_CmsTabHandler
    The results tab handler.

    This class receives event information from the results tab and delegates it to the gallery controller.

    Since:
    8.0.0
    • Method Detail

      • deleteResource

        public void deleteResource​(java.lang.String resourcePath)
        Deletes the given resource.

        Parameters:
        resourcePath - the resource path of the resource to delete
      • getResultViewType

        public java.lang.String getResultViewType()
        Returns the result view type.

        Returns:
        the result view type
      • hasPreview

        public boolean hasPreview​(java.lang.String resourceType)
        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

        public boolean hasSelectResource()
        Returns if resource entries in the search result are selectable.

        Returns:
        if resource entries in the search result are selectable
      • isLoading

        public boolean isLoading()
        Returns if a load results request is currently running.

        Returns:
        true if a load results request is currently running
      • onScrollToBottom

        public void onScrollToBottom()
        Will be triggered when the bottom of the result list is reached by scrolling.

      • openPreview

        public void openPreview​(java.lang.String resourcePath,
                                java.lang.String resourceType)
        Will be triggered when the result item is clicked.

        Parameters:
        resourcePath - the resource path of the result
        resourceType - the resource type
      • setResultViewType

        public void setResultViewType​(java.lang.String resultViewType)
        Stores the result view type.

        Parameters:
        resultViewType - the result view type
      • setScope

        public void setScope​(org.opencms.ade.galleries.shared.CmsGallerySearchScope scope)
        Sets the search scope.

        Parameters:
        scope - the search scope
      • updateResult

        public void updateResult()
        Updates the result tab.