Package org.opencms.ade.galleries.client
Class A_CmsTabHandler
java.lang.Object
org.opencms.ade.galleries.client.A_CmsTabHandler
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
,com.google.gwt.event.shared.EventHandler
- Direct Known Subclasses:
CmsCategoriesTabHandler
,CmsGalleriesTabHandler
,CmsResultsTabHandler
,CmsSearchTabHandler
,CmsSitemapTabHandler
,CmsTypesTabHandler
,CmsVfsTabHandler
public abstract class A_CmsTabHandler
extends Object
implements com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
The abstract class for the tab handler.
This class receives event information from the gallery dialog and delegates it to the gallery controller.
- Since:
- 8.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.event.shared.HandlerRegistration
addSearchChangeHandler
(com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.ade.galleries.shared.CmsGallerySearchBean> handler) Adds a change handler for the gallery search bean.abstract void
Clears the search parameters of this tab.org.opencms.ade.galleries.shared.CmsGalleryFolderBean
getGalleryInfo
(String galleryPath) Returns the gallery folder info to the given path.org.opencms.ade.galleries.shared.CmsResourceTypeBean
getTypeInfo
(String typeName) Returns the resource type info for the given resource type name.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 tab is deselected.abstract void
Will be triggered when the tab is selected.abstract void
Sorts the list, if present.abstract void
removeParam
(String paramKey) Removes the search parameter with the given key from the search object.void
selectResource
(String resourcePath, org.opencms.util.CmsUUID structureId, String title, String resourceType) Selects the given resource and sets its path into the xml-content field or editor link.void
Selects the result tab.void
setSearchQuery
(String searchQuery) Delegates the clear input action (click on the clear button) to the controller.void
Updates the gallery index and triggers a new search afterwards.void
Updates the tab size.
-
Field Details
-
m_controller
The gallery controller.
-
-
Constructor Details
-
A_CmsTabHandler
Constructor.- Parameters:
controller
- the controller
-
-
Method Details
-
clearParams
Clears the search parameters of this tab. -
getGalleryInfo
Returns the gallery folder info to the given path.- Parameters:
galleryPath
- the gallery folder path- Returns:
- the gallery folder info
-
getTypeInfo
Returns the resource type info for the given resource type name.- Parameters:
typeName
- the resource type name- Returns:
- the type info
-
onDeselection
Will be triggered when the tab is deselected. -
onSelection
Will be triggered when the tab is selected. -
onSort
Sorts the list, if present.- Parameters:
sortParams
- the sort parametersfilter
- the filter phrase
-
removeParam
Removes the search parameter with the given key from the search object.- Parameters:
paramKey
- the parameter key
-
selectResource
public void selectResource(String resourcePath, org.opencms.util.CmsUUID structureId, String title, String resourceType) Selects the given resource and sets its path into the xml-content field or editor link.- Parameters:
resourcePath
- the item resource pathstructureId
- the structure idtitle
- the resource titleresourceType
- the item resource type
-
selectResultTab
Selects the result tab. -
setSearchQuery
Delegates the clear input action (click on the clear button) to the controller.- Parameters:
searchQuery
- the search query
-
updateIndex
Updates the gallery index and triggers a new search afterwards. -
updateSize
Updates the tab size.