Package docking.widgets.fieldpanel
Class LayoutModelIterator
- java.lang.Object
 - 
- docking.widgets.fieldpanel.LayoutModelIterator
 
 
- 
- All Implemented Interfaces:
 java.util.Iterator<Layout>
public class LayoutModelIterator extends java.lang.Object implements java.util.Iterator<Layout>
AnIteratorreturningLayoutobjects that hides the details of usingLayoutModel's indexing methods. 
- 
- 
Constructor Summary
Constructors Constructor Description LayoutModelIterator(LayoutModel layoutModel)LayoutModelIterator(LayoutModel layoutModel, java.math.BigInteger startIndex) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegergetIndex()Returns the LayoutModel index of the item that was just returned vianext().java.math.BigIntegergetNextIndex()Returns the LayoutModel index of the next item that will be returned vianext().java.math.BigIntegergetPreviousIndex()Returns the LayoutModel index of the previous item that was returned vianext().booleanhasNext()Layoutnext() 
 - 
 
- 
- 
Constructor Detail
- 
LayoutModelIterator
public LayoutModelIterator(LayoutModel layoutModel)
 
- 
LayoutModelIterator
public LayoutModelIterator(LayoutModel layoutModel, java.math.BigInteger startIndex)
 
 - 
 
- 
Method Detail
- 
getIndex
public java.math.BigInteger getIndex()
Returns the LayoutModel index of the item that was just returned vianext().- Returns:
 - index of the last Layout item returned.
 
 
- 
getNextIndex
public java.math.BigInteger getNextIndex()
Returns the LayoutModel index of the next item that will be returned vianext().- Returns:
 - index of the next Layout item returned, or null if no additional items are present
 
 
- 
getPreviousIndex
public java.math.BigInteger getPreviousIndex()
Returns the LayoutModel index of the previous item that was returned vianext().- Returns:
 - index of the previous Layout item returned, or null if this iterator hasn't been used yet.
 
 
- 
hasNext
public boolean hasNext()
- Specified by:
 hasNextin interfacejava.util.Iterator<Layout>
 
 - 
 
 -