Class SortedSlotIterator
- java.lang.Object
-
- org.eclipse.birt.report.model.api.SortedSlotIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class SortedSlotIterator extends java.lang.Object implements java.util.IteratorAn sorted iterator over the elements in a slot. Each call togetNext( )returns a handle of typeDesignElementHandle. The elements in the list are sorted on the display name of the element.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListlistInternal list for sorted.protected intposnCurrent iteration position.protected SlotHandleslotHandleHandle to the slot over which to iterate.
-
Constructor Summary
Constructors Constructor Description SortedSlotIterator(SlotHandle handle)Constructs a sorted slot iterator with the given slot handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Objectnext()Returns a handle to the next content element.voidremove()Removes the element at the current iterator position.
-
-
-
Field Detail
-
slotHandle
protected final SlotHandle slotHandle
Handle to the slot over which to iterate.
-
list
protected java.util.List list
Internal list for sorted.
-
posn
protected int posn
Current iteration position.
-
-
Constructor Detail
-
SortedSlotIterator
public SortedSlotIterator(SlotHandle handle)
Constructs a sorted slot iterator with the given slot handle.- Parameters:
handle- handle to the slot over which to iterate
-
-
Method Detail
-
remove
public void remove()
Removes the element at the current iterator position.- Specified by:
removein interfacejava.util.Iterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next()
Returns a handle to the next content element. The handle is one of the various element classes derived fromDesignElementHandle.- Specified by:
nextin interfacejava.util.Iterator- Returns:
- a handle to the next content element.
-
-