public class CmsGalleryControllerHandler extends java.lang.Object implements com.google.gwt.event.logical.shared.ValueChangeHandler<CmsGallerySearchBean>
Delegates the actions of the gallery controller to the gallery dialog.
| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsGalleryDialog |
m_galleryDialog
The reference to the gallery dialog.
|
| 构造器和说明 |
|---|
CmsGalleryControllerHandler(CmsGalleryDialog galleryDialog)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.String |
getCloseLink()
Retrieves the close link global variable as a string.
|
boolean |
hasResultsTab()
Returns true if a results tab exists.
|
void |
hideShowPreviewButton(boolean hide)
Hides or shows the show-preview-button.
|
void |
onCategoriesTabSelection()
Will be triggered when the categories tab is selected.
|
void |
onClearCategories(java.util.List<java.lang.String> categories)
Deletes the html content of the categories parameter and removes the style.
|
void |
onClearFolders(java.util.Collection<java.lang.String> folders)
The method which is executed when all folders are cleared from the search object.
|
void |
onClearFullTextSearch()
clears the search tab input.
|
void |
onClearGalleries(java.util.List<java.lang.String> galleries)
Deletes the html content of the galleries parameter and removes the style.
|
void |
onClearTypes(java.util.List<java.lang.String> types)
Deletes the html content of the types parameter and removes the style.
|
void |
onGalleriesTabSelection()
Will be triggered when the galleries tab is selected.
|
void |
onInitialSearch(CmsGallerySearchBean searchObj,
CmsGalleryDataBean dialogBean,
CmsGalleryController controller,
boolean isFirstTime)
Will be triggered when the initial search is performed.
|
void |
onReceiveSitemapPreloadData(CmsSitemapEntryBean sitemapPreloadData)
This method is called when preloaded sitemap tree state data is loaded.
|
void |
onReceiveVfsPreloadData(CmsVfsEntryBean vfsPreloadData)
This method is called when preloaded VFS tree state data is loaded.
|
void |
onRemoveSearchParam(CmsSearchTab.ParamType type)
Removes a parameter from the search tab.
|
void |
onResultTabSelection(CmsGallerySearchBean searchObj)
Will be triggered when the results tab is selected.
|
void |
onTypesTabSelection()
Will be triggered when the types tab is selected.
|
void |
onUpdateCategoriesList(java.util.List<CmsCategoryBean> categoriesList,
java.util.List<java.lang.String> selectedCategories)
Will be triggered when categories list is sorted.
|
void |
onUpdateCategoriesTree(java.util.List<CmsCategoryTreeEntry> categoryTreeEntry,
java.util.List<java.lang.String> selectedCategories)
Will be triggered when the tree is selected.
|
void |
onUpdateGalleries(java.util.List<CmsGalleryFolderBean> galleries,
java.util.List<java.lang.String> selectedGalleries)
Will be triggered when the sort parameters of the galleries list are changed.
|
void |
onUpdateGalleryTree(java.util.List<CmsGalleryTreeEntry> galleryTreeEntries,
java.util.List<java.lang.String> selectedGalleries)
Updates the gallery tree.
|
void |
onUpdateTypes(java.util.List<CmsResourceTypeBean> types,
java.util.List<java.lang.String> selectedTypes)
Will be triggered when the sort parameters of the types list are changed.
|
void |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<CmsGallerySearchBean> event) |
void |
selectResultTab()
Selects the result tab.
|
void |
setCategoriesTabContent(java.util.List<CmsCategoryTreeEntry> categoryRoot)
Sets the list content of the category tab.
|
void |
setGalleriesTabContent(java.util.List<CmsGalleryFolderBean> galleryInfos,
java.util.List<java.lang.String> selectedGalleries)
Sets the list content of the galleries tab.
|
void |
setTypesTabContent(java.util.List<CmsResourceTypeBean> typeInfos,
java.util.List<java.lang.String> selectedTypes)
Sets the list content of the types tab.
|
void |
showNoParamsMessage()
Shows the message if no search params were selected.
|
protected void |
showPreloadDataInTabs(CmsGallerySearchBean result)
Causes the preloaded tree states to be displayed in the tree tabs.
|
protected CmsGalleryDialog m_galleryDialog
public CmsGalleryControllerHandler(CmsGalleryDialog galleryDialog)
galleryDialog - the reference to the gallery dialogpublic boolean hasResultsTab()
public void hideShowPreviewButton(boolean hide)
hide - true to hide the buttonpublic void onCategoriesTabSelection()
public void onClearCategories(java.util.List<java.lang.String> categories)
categories - the categories to remove from selectionpublic void onClearFolders(java.util.Collection<java.lang.String> folders)
folders - the folders which have been clearedpublic void onClearFullTextSearch()
public void onClearGalleries(java.util.List<java.lang.String> galleries)
galleries - the galleries to remove from selectionpublic void onClearTypes(java.util.List<java.lang.String> types)
types - the types to be removed from selectionpublic void onGalleriesTabSelection()
public void onInitialSearch(CmsGallerySearchBean searchObj, CmsGalleryDataBean dialogBean, CmsGalleryController controller, boolean isFirstTime)
searchObj - the current search objectdialogBean - the current dialog data beancontroller - the dialog controllerisFirstTime - true if this method is called the first time for the gallery dialog instancepublic void onReceiveSitemapPreloadData(CmsSitemapEntryBean sitemapPreloadData)
sitemapPreloadData - the sitemap preload datapublic void onReceiveVfsPreloadData(CmsVfsEntryBean vfsPreloadData)
vfsPreloadData - the preload datapublic void onRemoveSearchParam(CmsSearchTab.ParamType type)
type - the parameter typepublic void onResultTabSelection(CmsGallerySearchBean searchObj)
searchObj - the current search objectpublic void onTypesTabSelection()
public void onUpdateCategoriesList(java.util.List<CmsCategoryBean> categoriesList, java.util.List<java.lang.String> selectedCategories)
categoriesList - the updated categories listselectedCategories - the selected categoriespublic void onUpdateCategoriesTree(java.util.List<CmsCategoryTreeEntry> categoryTreeEntry, java.util.List<java.lang.String> selectedCategories)
categoryTreeEntry - the category root entryselectedCategories - the selected categoriespublic void onUpdateGalleries(java.util.List<CmsGalleryFolderBean> galleries, java.util.List<java.lang.String> selectedGalleries)
galleries - the updated galleries listselectedGalleries - the list of galleries to selectpublic void onUpdateGalleryTree(java.util.List<CmsGalleryTreeEntry> galleryTreeEntries, java.util.List<java.lang.String> selectedGalleries)
galleryTreeEntries - the gallery tree entriesselectedGalleries - the selected galleriespublic void onUpdateTypes(java.util.List<CmsResourceTypeBean> types, java.util.List<java.lang.String> selectedTypes)
types - the updated types listselectedTypes - the list of types to selectpublic void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<CmsGallerySearchBean> event)
onValueChange 在接口中 com.google.gwt.event.logical.shared.ValueChangeHandler<CmsGallerySearchBean>ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)public void selectResultTab()
public void setCategoriesTabContent(java.util.List<CmsCategoryTreeEntry> categoryRoot)
categoryRoot - the root category tree entrypublic void setGalleriesTabContent(java.util.List<CmsGalleryFolderBean> galleryInfos, java.util.List<java.lang.String> selectedGalleries)
galleryInfos - the gallery info beansselectedGalleries - the selected galleriespublic void setTypesTabContent(java.util.List<CmsResourceTypeBean> typeInfos, java.util.List<java.lang.String> selectedTypes)
typeInfos - the type info beansselectedTypes - the selected typespublic void showNoParamsMessage()
protected java.lang.String getCloseLink()
protected void showPreloadDataInTabs(CmsGallerySearchBean result)
result - the gallery search bean from which to take the preload data