Class SlotIterator
- java.lang.Object
-
- org.eclipse.birt.report.model.api.SlotIterator
-
- All Implemented Interfaces:
java.util.Iterator<DesignElementHandle>
public class SlotIterator extends java.lang.Object implements java.util.Iterator<DesignElementHandle>
An Iterator over the elements in a slot. Each call togetNext( )returns a handle of typeDesignElementHandle.
-
-
Field Summary
Fields Modifier and Type Field Description protected intposnCurrent iteration position.protected SlotHandleslotHandleHandle to the slot over which to iterate.
-
Constructor Summary
Constructors Constructor Description SlotIterator(SlotHandle handle)Constructs an iterator for the given slot.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()DesignElementHandlenext()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.
-
posn
protected int posn
Current iteration position.
-
-
Constructor Detail
-
SlotIterator
public SlotIterator(SlotHandle handle)
Constructs an iterator for the given slot.- 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<DesignElementHandle>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<DesignElementHandle>
-
next
public DesignElementHandle 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<DesignElementHandle>- Returns:
- a handle to the next content element.
-
-