Package org.opencms.ade.galleries.client
Class CmsSitemapTabHandler
java.lang.Object
org.opencms.ade.galleries.client.A_CmsTabHandler
org.opencms.ade.galleries.client.CmsSitemapTabHandler
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.shared.EventHandler
Handler class for the sitemap tree tab.
- Since:
- 8.5.0
-
Field Summary
Fields inherited from class org.opencms.ade.galleries.client.A_CmsTabHandler
m_controller -
Constructor Summary
ConstructorsConstructorDescriptionCmsSitemapTabHandler(CmsGalleryController controller) Creates a new sitemap tab handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the search parameters of this tab.Gets the selected site root.getSelectPath(org.opencms.ade.galleries.shared.CmsSitemapEntryBean sitemapEntry) Gets the path which is used when the sitemap entry is selected.Gets the select options for the sort list.voidgetSubEntries(String rootPath, boolean isRoot, I_CmsSimpleCallback<List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean>> callback) Loads the sub entries for the given path.protected CmsSitemapTabgetTab()Returns the sitemap tab.booleanReturns if this tab should offer select resource buttons.voidInitializes the sitemap tab's content.voidonChangeTreeState(Set<org.opencms.util.CmsUUID> openItemIds) This method is called when the tree open state changes.voidWill be triggered when the tab is selected.voidSorts the list, if present.voidremoveParam(String paramKey) Removes the search parameter with the given key from the search object.protected voidsetSiteRoot(String siteRoot) Setter for the site root attribute.Methods inherited from class org.opencms.ade.galleries.client.A_CmsTabHandler
addSearchChangeHandler, getGalleryInfo, getTypeInfo, onClose, onDeselection, selectResource, selectResultTab, setSearchQuery, updateIndex, updateSize
-
Constructor Details
-
CmsSitemapTabHandler
Creates a new sitemap tab handler.- Parameters:
controller- the gallery controller
-
-
Method Details
-
clearParams
Description copied from class:A_CmsTabHandlerClears the search parameters of this tab.- Specified by:
clearParamsin classA_CmsTabHandler- See Also:
-
getDefaultSelectedSiteRoot
Gets the selected site root.- Returns:
- the selected site root
-
getSortList
Gets the select options for the sort list.- Returns:
- the select options for the sort list
-
getSubEntries
public void getSubEntries(String rootPath, boolean isRoot, I_CmsSimpleCallback<List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean>> callback) Loads the sub entries for the given path.- Parameters:
rootPath- the root pathisRoot-trueif the requested entry is the root entrycallback- the callback to execute with the result
-
hasSelectResource
Returns if this tab should offer select resource buttons.- Returns:
trueif this tab should offer select resource buttons
-
initializeSitemapTab
Initializes the sitemap tab's content. -
onChangeTreeState
This method is called when the tree open state changes.- Parameters:
openItemIds- the structure ids of open entries
-
onSelection
Description copied from class:A_CmsTabHandlerWill be triggered when the tab is selected.- Specified by:
onSelectionin classA_CmsTabHandler- See Also:
-
onSort
Description copied from class:A_CmsTabHandlerSorts the list, if present.- Specified by:
onSortin classA_CmsTabHandler- Parameters:
sortParams- the sort parametersfilter- the filter phrase- See Also:
-
removeParam
Description copied from class:A_CmsTabHandlerRemoves the search parameter with the given key from the search object.- Specified by:
removeParamin classA_CmsTabHandler- Parameters:
paramKey- the parameter key- See Also:
-
getTab
Returns the sitemap tab.- Returns:
- the sitemap tab
-
setSiteRoot
Setter for the site root attribute.- Parameters:
siteRoot- the new value for the site root attribute
-