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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if a results tab exists.voidhideShowPreviewButton(boolean hide) Hides or shows the show-preview-button.voidWill be triggered when the categories tab is selected.voidonClearCategories(List<String> categories) Deletes the html content of the categories parameter and removes the style.voidonClearFolders(Collection<String> folders) The method which is executed when all folders are cleared from the search object.voidclears the search tab input.voidonClearGalleries(List<String> galleries) Deletes the html content of the galleries parameter and removes the style.voidonClearTypes(List<String> types) Deletes the html content of the types parameter and removes the style.voidWill be triggered when the galleries tab is selected.voidonInitialSearch(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.voidonReceiveSitemapPreloadData(org.opencms.ade.galleries.shared.CmsSitemapEntryBean sitemapPreloadData) This method is called when preloaded sitemap tree state data is loaded.voidonReceiveVfsPreloadData(org.opencms.ade.galleries.shared.CmsVfsEntryBean vfsPreloadData, Set<String> folders) This method is called when preloaded VFS tree state data is loaded.voidCalled when the query is removed.voidCalled when the search scope is removed.voidRemoves a parameter from the search tab.voidonResultTabSelection(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj) Will be triggered when the results tab is selected.voidWill be triggered when the types tab is selected.voidonUpdateCategoriesList(List<org.opencms.gwt.shared.CmsCategoryBean> categoriesList, List<String> selectedCategories) Will be triggered when categories list is sorted.voidonUpdateCategoriesTree(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryTreeEntry, List<String> selectedCategories) Will be triggered when the tree is selected.voidonUpdateGalleries(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.voidonUpdateGalleryTree(List<org.opencms.ade.galleries.shared.CmsGalleryTreeEntry> galleryTreeEntries, List<String> selectedGalleries) Updates the gallery tree.voidonUpdateTypes(List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> types, List<String> selectedTypes) Will be triggered when the sort parameters of the types list are changed.voidonValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.ade.galleries.shared.CmsGallerySearchBean> event) voidSelects the result tab.voidsetCategoriesTabContent(List<org.opencms.gwt.shared.CmsCategoryTreeEntry> categoryRoot, List<String> selected) Sets the list content of the category tab.voidsetGalleriesTabContent(List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleryInfos, List<String> selectedGalleries, boolean useGroups) Sets the list content of the galleries tab.voidsetTypesTabContent(List<org.opencms.ade.galleries.shared.CmsResourceTypeBean> typeInfos, List<String> selectedTypes) Sets the list content of the types tab.voidShows the first available tab.voidupdateGalleryData(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-trueto 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.
-