Class CmsGalleriesTab.ListItemGenerator
java.lang.Object
org.opencms.ade.galleries.client.ui.CmsGalleriesTab.ListItemGenerator
- All Implemented Interfaces:
Iterator<CmsTreeItem>
- Enclosing class:
- CmsGalleriesTab
A class which generates list items incrementally to fill the galleries tab.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Iterator<org.opencms.ade.galleries.shared.CmsGalleryFolderBean>
The internal iterator over the gallery beans.protected boolean
True if output should be grouped. -
Constructor Summary
ConstructorDescriptionListItemGenerator
(List<org.opencms.ade.galleries.shared.CmsGalleryFolderBean> folders, boolean grouped) Creates a new instance. -
Method Summary
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 Details
-
m_beanIterator
The internal iterator over the gallery beans. -
m_useGroups
True if output should be grouped.
-
-
Constructor Details
-
ListItemGenerator
public ListItemGenerator(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 itemsgrouped
- true if the list items should be displayed in groups (this assumes the items have already been sorted correctly)
-
-
Method Details
-
hasNext
- Specified by:
hasNext
in interfaceIterator<CmsTreeItem>
- See Also:
-
next
- Specified by:
next
in interfaceIterator<CmsTreeItem>
- See Also:
-
remove
- Specified by:
remove
in interfaceIterator<CmsTreeItem>
- See Also:
-