Class CmsSitemapTabHandler

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.EventHandler

    public class CmsSitemapTabHandler
    extends A_CmsTabHandler
    Handler class for the sitemap tree tab.

    Since:
    8.5.0
    • Method Detail

      • getDefaultSelectedSiteRoot

        public java.lang.String getDefaultSelectedSiteRoot()
        Gets the selected site root.

        Returns:
        the selected site root
      • getSelectPath

        public java.lang.String getSelectPath​(org.opencms.ade.galleries.shared.CmsSitemapEntryBean sitemapEntry)
        Gets the path which is used when the sitemap entry is selected.

        Parameters:
        sitemapEntry - the sitemap entry
        Returns:
        the path to use when the entry is selected
      • getSortList

        public java.util.LinkedHashMap<java.lang.String,​java.lang.String> getSortList()
        Gets the select options for the sort list.

        Returns:
        the select options for the sort list
      • getSubEntries

        public void getSubEntries​(java.lang.String rootPath,
                                  boolean isRoot,
                                  I_CmsSimpleCallback<java.util.List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean>> callback)
        Loads the sub entries for the given path.

        Parameters:
        rootPath - the root path
        isRoot - true if the requested entry is the root entry
        callback - the callback to execute with the result
      • hasSelectResource

        public boolean hasSelectResource()
        Returns if this tab should offer select resource buttons.

        Returns:
        true if this tab should offer select resource buttons
      • onChangeTreeState

        public void onChangeTreeState​(java.util.Set<org.opencms.util.CmsUUID> openItemIds)
        This method is called when the tree open state changes.

        Parameters:
        openItemIds - the structure ids of open entries
      • setSiteRoot

        protected void setSiteRoot​(java.lang.String siteRoot)
        Setter for the site root attribute.

        Parameters:
        siteRoot - the new value for the site root attribute