Package docking.widgets.fieldpanel
Class LayoutModelIterator
java.lang.Object
docking.widgets.fieldpanel.LayoutModelIterator
An
Iterator
returning Layout
objects that hides the details of using LayoutModel
's
indexing methods.-
Constructor Summary
ConstructorDescriptionLayoutModelIterator
(LayoutModel layoutModel) LayoutModelIterator
(LayoutModel layoutModel, BigInteger startIndex) -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()
Returns the LayoutModel index of the item that was just returned vianext()
.Returns the LayoutModel index of the next item that will be returned vianext()
.Returns the LayoutModel index of the previous item that was returned vianext()
.boolean
hasNext()
next()
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, remove
-
Constructor Details
-
LayoutModelIterator
-
LayoutModelIterator
-
-
Method Details
-
getIndex
Returns the LayoutModel index of the item that was just returned vianext()
.- Returns:
- index of the last Layout item returned.
-
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
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() -
next
-