public class CmsResultsTabHandler extends A_CmsTabHandler
This class receives event information from the results tab and delegates it to the gallery controller.
m_controller
构造器和说明 |
---|
CmsResultsTabHandler(CmsGalleryController controller)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
clearParams()
Clears the search parameters of this tab.
|
void |
deleteResource(java.lang.String resourcePath)
Deletes the given resource.
|
boolean |
hasPreview(java.lang.String resourceType)
Returns if a preview is available for the given resource type.
|
boolean |
hasSelectResource()
Returns if resource entries in the search result are selectable.
|
boolean |
isLoading()
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 |
onScrollToBottom()
Will be triggered when the bottom of the result list is reached by scrolling.
|
void |
onSelection()
Will be triggered when the tab is selected.
|
void |
onSort(java.lang.String sortParams,
java.lang.String filter)
Sorts the list, if present.
|
void |
openPreview(java.lang.String resourcePath,
java.lang.String resourceType)
Will be triggered when the result item is clicked.
|
void |
removeParam(java.lang.String paramKey)
Removes the search parameter with the given key from the search object.
|
void |
updateResult()
Updates the result tab.
|
addSearchChangeHandler, onDeselection, selectResource, selectResultTab, setSearchQuery, updateIndex
public CmsResultsTabHandler(CmsGalleryController controller)
controller
- the gallery controllerpublic void clearParams()
A_CmsTabHandler
clearParams
在类中 A_CmsTabHandler
A_CmsTabHandler.clearParams()
public void deleteResource(java.lang.String resourcePath)
resourcePath
- the resource path of the resource to deletepublic boolean hasPreview(java.lang.String resourceType)
resourceType
- the requested resource typetrue
if a preview is available for the given resource typepublic boolean hasSelectResource()
public boolean isLoading()
true
if a load results request is currently runningpublic void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
A_CmsTabHandler
onClose
在接口中 com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
onClose
在类中 A_CmsTabHandler
event
- the close eventA_CmsTabHandler.onClose(com.google.gwt.event.logical.shared.CloseEvent)
public void onScrollToBottom()
public void onSelection()
A_CmsTabHandler
onSelection
在类中 A_CmsTabHandler
A_CmsTabHandler.onSelection()
public void onSort(java.lang.String sortParams, java.lang.String filter)
A_CmsTabHandler
onSort
在类中 A_CmsTabHandler
sortParams
- the sort parametersfilter
- the filter phraseA_CmsTabHandler.onSort(java.lang.String,java.lang.String)
public void openPreview(java.lang.String resourcePath, java.lang.String resourceType)
resourcePath
- the resource path of the resultresourceType
- public void removeParam(java.lang.String paramKey)
A_CmsTabHandler
removeParam
在类中 A_CmsTabHandler
paramKey
- the parameter keyA_CmsTabHandler.removeParam(java.lang.String)
public void updateResult()