Class CmsGalleriesTab

  • All Implemented Interfaces:,<java.lang.String>,,,,,,, I_CmsTruncable

    public class CmsGalleriesTab
    extends A_CmsListTab
    Provides the widget for the galleries(folder) tab.

    It displays the available gallery folders in the given order.

    • Method Detail

      • fillContent

        public void fillContent​(java.util.List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleryInfos,
                                java.util.List<java.lang.String> selectedGalleries)
        Fill the content of the galleries tab panel.

        galleryInfos - the gallery info beans
        selectedGalleries - the list of galleries to select
      • isLoading

        public boolean isLoading()
        Returns the value of the "loading" flag, which indicates whether new elements are currently being added into the galleries tab.

        the "loading" flag
      • setLoading

        public void setLoading​(boolean loading)
        Sets the "loading" flag.

        loading - the new value of the loading flag
      • uncheckGalleries

        public void uncheckGalleries​(java.util.List<java.lang.String> galleries)
        De-selects the galleries in the galleries list.

        galleries - the galleries to deselect
      • updateListContent

        public void updateListContent​(java.util.List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> galleries,
                                      java.util.List<java.lang.String> selectedGalleries)
        Update the galleries list.

        galleries - the new gallery list
        selectedGalleries - the list of galleries to select
      • updateTreeContent

        public void updateTreeContent​(java.util.List<org.opencms.ade.galleries.shared.CmsGalleryTreeEntry> galleryTreeEntries,
                                      java.util.List<java.lang.String> selectedGalleries)
        Update the galleries tree.

        galleryTreeEntries - the new gallery tree list
        selectedGalleries - the list of galleries to select
      • addChildren

        protected void addChildren​(CmsTreeItem parent,
                                   java.util.List<org.opencms.ade.galleries.shared.CmsGalleryTreeEntry> children,
                                   java.util.List<java.lang.String> selectedGalleries)
        Adds children to the gallery tree and select the galleries.

        parent - the parent item
        children - the list of children
        selectedGalleries - the list of galleries to select
      • createTreeItem

        protected CmsTreeItem createTreeItem​(org.opencms.ade.galleries.shared.CmsGalleryFolderBean galleryInfo,
                                             java.util.List<java.lang.String> selectedGalleries,
                                             boolean forTree)
        Creates a tree item widget used in list and tree view of this tab.

        galleryInfo - the gallery folder bean
        selectedGalleries - the selected galleries
        forTree - true if the item is used within tree view
        the tree item
      • loadMoreItems

        protected void loadMoreItems()
        Adds more gallery list items to display in the tab, if available.