Class CmsGalleriesTab.ListItemGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Iterator<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> m_beanIterator
      The internal iterator over the gallery beans.
      protected boolean m_useGroups
      True if output should be grouped.
    • Constructor Summary

      Constructors 
      Constructor Description
      ListItemGenerator​(java.util.List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> folders, boolean grouped)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      CmsTreeItem next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • m_beanIterator

        protected java.util.Iterator<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> m_beanIterator
        The internal iterator over the gallery beans.
      • m_useGroups

        protected boolean m_useGroups
        True if output should be grouped.
    • Constructor Detail

      • ListItemGenerator

        public ListItemGenerator​(java.util.List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> folders,
                                 boolean grouped)
        Creates a new instance.

        Parameters:
        folders - the list of folders for which to generate list items
        grouped - true if the list items should be displayed in groups (this assumes the items have already been sorted correctly)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<CmsTreeItem>
        See Also:
        Iterator.hasNext()
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<CmsTreeItem>
        See Also:
        Iterator.remove()