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
ConstructorDescriptionCmsSitemapTabHandler
(CmsGalleryController controller) Creates a new sitemap tab handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears 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.void
getSubEntries
(String rootPath, boolean isRoot, I_CmsSimpleCallback<List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean>> callback) Loads the sub entries for the given path.protected CmsSitemapTab
getTab()
Returns the sitemap tab.boolean
Returns if this tab should offer select resource buttons.void
Initializes the sitemap tab's content.void
onChangeTreeState
(Set<org.opencms.util.CmsUUID> openItemIds) This method is called when the tree open state changes.void
Will be triggered when the tab is selected.void
Sorts the list, if present.void
removeParam
(String paramKey) Removes the search parameter with the given key from the search object.protected void
setSiteRoot
(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_CmsTabHandler
Clears the search parameters of this tab.- Specified by:
clearParams
in 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
-true
if 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:
true
if 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_CmsTabHandler
Will be triggered when the tab is selected.- Specified by:
onSelection
in classA_CmsTabHandler
- See Also:
-
onSort
Description copied from class:A_CmsTabHandler
Sorts the list, if present.- Specified by:
onSort
in classA_CmsTabHandler
- Parameters:
sortParams
- the sort parametersfilter
- the filter phrase- See Also:
-
removeParam
Description copied from class:A_CmsTabHandler
Removes the search parameter with the given key from the search object.- Specified by:
removeParam
in 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
-