Class CmsSitemapTab

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, I_CmsTruncable

    public class CmsSitemapTab
    extends A_CmsListTab
    The tab widget for selecting sitemap entries.

    Since:
    8.5.0
    • Method Detail

      • fill

        public void fill​(java.util.List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean> entries)
        Sets the initial folders in the VFS tab.

        Parameters:
        entries - the root folders to display
      • fillDefault

        public void fillDefault​(java.util.List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean> entries)
        Default way to fill the sitemap tab.

        Parameters:
        entries - the entries to fill the tab with
      • fillWithPreloadInfo

        public void fillWithPreloadInfo​(java.util.List<org.opencms.ade.galleries.shared.CmsSitemapEntryBean> entries)
        Fills the sitemap tab with preloaded data.

        Parameters:
        entries - the preloaded sitemap entries
      • isInitialized

        public boolean isInitialized()
        Returns if the tab content has been initialized.

        Returns:
        true if the tab content has been initialized
      • onLoad

        public void onLoad()
        Overrides:
        onLoad in class com.google.gwt.user.client.ui.Widget
        See Also:
        Widget.onLoad()
      • onReceiveSitemapPreloadData

        public void onReceiveSitemapPreloadData​(org.opencms.ade.galleries.shared.CmsSitemapEntryBean sitemapPreloadData)
        Method which is called when the sitemap preload data is received.

        Parameters:
        sitemapPreloadData - the sitemap tree's preloaded root entry
      • clear

        protected void clear()
        Clears the contents of the tab and resets the mapping from tree items to VFS beans.

      • createItem

        protected CmsLazyTreeItem createItem​(org.opencms.ade.galleries.shared.CmsSitemapEntryBean sitemapEntry)
        Helper method for creating a VFS tree item widget from a VFS entry bean.

        Parameters:
        sitemapEntry - the VFS entry bean
        Returns:
        the tree item widget