Package org.opencms.ade.galleries.client
Class CmsGalleryControllerHandler
java.lang.Object
org.opencms.ade.galleries.client.CmsGalleryControllerHandler
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.ade.galleries.shared.CmsGallerySearchBean>
,com.google.gwt.event.shared.EventHandler
public class CmsGalleryControllerHandler
extends Object
implements com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.ade.galleries.shared.CmsGallerySearchBean>
Gallery dialog controller handler.
Delegates the actions of the gallery controller to the gallery dialog.
- Since:
- 8.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if a results tab exists.void
hideShowPreviewButton
(boolean hide) Hides or shows the show-preview-button.void
Will be triggered when the categories tab is selected.void
onClearCategories
(List<String> categories) Deletes the html content of the categories parameter and removes the style.void
onClearFolders
(Collection<String> folders) The method which is executed when all folders are cleared from the search object.void
clears the search tab input.void
onClearGalleries
(List<String> galleries) Deletes the html content of the galleries parameter and removes the style.void
onClearTypes
(List<String> types) Deletes the html content of the types parameter and removes the style.void
Will be triggered when the galleries tab is selected.void
onInitialSearch
(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj, org.opencms.ade.galleries.shared.CmsGalleryDataBean dialogBean, CmsGalleryController controller, boolean isFirstTime) Will be triggered when the initial search is performed.void
onReceiveSitemapPreloadData
(org.opencms.ade.galleries.shared.CmsSitemapEntryBean sitemapPreloadData) This method is called when preloaded sitemap tree state data is loaded.void
onReceiveVfsPreloadData
(org.opencms.ade.galleries.shared.CmsVfsEntryBean vfsPreloadData, Set<String> folders) This method is called when preloaded VFS tree state data is loaded.void
Called when the query is removed.void
Called when the search scope is removed.void
Removes a parameter from the search tab.void
onResultTabSelection
(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj) Will be triggered when the results tab is selected.void
Will be triggered when the types tab is selected.void
onUpdateCategoriesList
(List<org.opencms.gwt.shared.CmsCategoryBean> categoriesList, List<String> selectedCategories) Will be triggered when categories list is sorted.void
onUpdateCategoriesTree
(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryTreeEntry, List<String> selectedCategories) Will be triggered when the tree is selected.void
onUpdateGalleries
(List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleries, List<String> selectedGalleries, boolean grouped) Will be triggered when the sort parameters of the galleries list are changed.void
onUpdateGalleryTree
(List<org.opencms.ade.galleries.shared.CmsGalleryTreeEntry> galleryTreeEntries, List<String> selectedGalleries) Updates the gallery tree.void
onUpdateTypes
(List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> types, List<String> selectedTypes) Will be triggered when the sort parameters of the types list are changed.void
onValueChange
(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.ade.galleries.shared.CmsGallerySearchBean> event) void
Selects the result tab.void
setCategoriesTabContent
(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryRoot, List<String> selected) Sets the list content of the category tab.void
setGalleriesTabContent
(List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleryInfos, List<String> selectedGalleries, boolean useGroups) Sets the list content of the galleries tab.void
setTypesTabContent
(List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> typeInfos, List<String> selectedTypes) Sets the list content of the types tab.void
Shows the first available tab.void
updateGalleryData
(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj, org.opencms.ade.galleries.shared.CmsGalleryDataBean dialogBean, CmsGalleryController controller) Updates the gallery data.
-
Field Details
-
m_galleryDialog
The reference to the gallery dialog.
-
-
Constructor Details
-
CmsGalleryControllerHandler
Constructor.- Parameters:
galleryDialog
- the reference to the gallery dialog
-
-
Method Details
-
hasResultsTab
Returns true if a results tab exists.- Returns:
- true if a results tab exists
-
hideShowPreviewButton
Hides or shows the show-preview-button.- Parameters:
hide
-true
to hide the button
-
onCategoriesTabSelection
Will be triggered when the categories tab is selected. -
onClearCategories
Deletes the html content of the categories parameter and removes the style.- Parameters:
categories
- the categories to remove from selection
-
onClearFolders
The method which is executed when all folders are cleared from the search object.- Parameters:
folders
- the folders which have been cleared
-
onClearFullTextSearch
clears the search tab input. -
onClearGalleries
Deletes the html content of the galleries parameter and removes the style.- Parameters:
galleries
- the galleries to remove from selection
-
onClearTypes
Deletes the html content of the types parameter and removes the style.- Parameters:
types
- the types to be removed from selection
-
onGalleriesTabSelection
Will be triggered when the galleries tab is selected. -
onRemoveQuery
Called when the query is removed. -
onRemoveScope
Called when the search scope is removed. -
onRemoveSearchParam
Removes a parameter from the search tab.- Parameters:
type
- the parameter type
-
onTypesTabSelection
Will be triggered when the types tab is selected. -
onUpdateCategoriesList
public void onUpdateCategoriesList(List<org.opencms.gwt.shared.CmsCategoryBean> categoriesList, List<String> selectedCategories) Will be triggered when categories list is sorted.- Parameters:
categoriesList
- the updated categories listselectedCategories
- the selected categories
-
onUpdateCategoriesTree
public void onUpdateCategoriesTree(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryTreeEntry, List<String> selectedCategories) Will be triggered when the tree is selected.- Parameters:
categoryTreeEntry
- the category root entryselectedCategories
- the selected categories
-
onUpdateGalleries
public void onUpdateGalleries(List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleries, List<String> selectedGalleries, boolean grouped) Will be triggered when the sort parameters of the galleries list are changed.- Parameters:
galleries
- the updated galleries listselectedGalleries
- the list of galleries to selectgrouped
- true if the gallery list should be shown as groups
-
onUpdateGalleryTree
public void onUpdateGalleryTree(List<org.opencms.ade.galleries.shared.CmsGalleryTreeEntry> galleryTreeEntries, List<String> selectedGalleries) Updates the gallery tree.- Parameters:
galleryTreeEntries
- the gallery tree entriesselectedGalleries
- the selected galleries
-
onUpdateTypes
public void onUpdateTypes(List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> types, List<String> selectedTypes) Will be triggered when the sort parameters of the types list are changed.- Parameters:
types
- the updated types listselectedTypes
- the list of types to select
-
selectResultTab
Selects the result tab. -
setCategoriesTabContent
public void setCategoriesTabContent(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryRoot, List<String> selected) Sets the list content of the category tab.- Parameters:
categoryRoot
- the root category tree entryselected
- the selected categories
-
setGalleriesTabContent
public void setGalleriesTabContent(List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleryInfos, List<String> selectedGalleries, boolean useGroups) Sets the list content of the galleries tab.- Parameters:
galleryInfos
- the gallery info beansselectedGalleries
- the selected galleriesuseGroups
- true if the gallery list should be shown as groups
-
setTypesTabContent
public void setTypesTabContent(List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> typeInfos, List<String> selectedTypes) Sets the list content of the types tab.- Parameters:
typeInfos
- the type info beansselectedTypes
- the selected types
-
showFirstTab
Shows the first available tab.
-