public abstract class A_CmsTabHandler
extends java.lang.Object
implements com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
This class receives event information from the gallery dialog and delegates it to the gallery controller.
限定符和类型 | 字段和说明 |
---|---|
protected CmsGalleryController |
m_controller
The gallery controller.
|
构造器和说明 |
---|
A_CmsTabHandler(CmsGalleryController controller)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addSearchChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<CmsGallerySearchBean> handler)
Adds a change handler for the gallery search bean.
|
abstract void |
clearParams()
Clears the search parameters of this tab.
|
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 |
onDeselection()
Will be triggered when the tab is deselected.
|
abstract void |
onSelection()
Will be triggered when the tab is selected.
|
abstract void |
onSort(java.lang.String sortParams,
java.lang.String filter)
Sorts the list, if present.
|
abstract void |
removeParam(java.lang.String paramKey)
Removes the search parameter with the given key from the search object.
|
void |
selectResource(java.lang.String resourcePath,
CmsUUID structureId,
java.lang.String title,
java.lang.String resourceType)
Selects the given resource and sets its path into the xml-content field or editor link.
|
void |
selectResultTab()
Selects the result tab.
|
void |
setSearchQuery(java.lang.String searchQuery)
Delegates the clear input action (click on the clear button) to the controller.
|
void |
updateIndex()
Updates the gallery index and triggers a new search afterwards.
|
protected CmsGalleryController m_controller
public A_CmsTabHandler(CmsGalleryController controller)
controller
- the controllerpublic com.google.gwt.event.shared.HandlerRegistration addSearchChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<CmsGallerySearchBean> handler)
handler
- the handlerpublic abstract void clearParams()
public void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
onClose
在接口中 com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
event
- the close eventpublic void onDeselection()
public abstract void onSelection()
public abstract void onSort(java.lang.String sortParams, java.lang.String filter)
sortParams
- the sort parametersfilter
- the filter phrasepublic abstract void removeParam(java.lang.String paramKey)
paramKey
- the parameter keypublic void selectResource(java.lang.String resourcePath, CmsUUID structureId, java.lang.String title, java.lang.String resourceType)
resourcePath
- the item resource pathstructureId
- the structure idtitle
- the resource titleresourceType
- the item resource typepublic void selectResultTab()
public void setSearchQuery(java.lang.String searchQuery)
searchQuery
- the search querypublic void updateIndex()