public class LMiter extends Object implements ListIterator<LayoutManager>
| Modifier and Type | Field and Description |
|---|---|
protected int |
curPos
current position in iteration
|
protected List<LayoutManager> |
listLMs
list of layout managers
|
| Constructor and Description |
|---|
LMiter(LayoutManager lp)
Construct a layout manager iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(LayoutManager lm) |
boolean |
hasNext() |
boolean |
hasPrevious() |
LayoutManager |
next() |
int |
nextIndex() |
LayoutManager |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(LayoutManager lm) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected List<LayoutManager> listLMs
protected int curPos
public LMiter(LayoutManager lp)
lp - the associated layout manager (parent)public boolean hasNext()
hasNext in interface Iterator<LayoutManager>hasNext in interface ListIterator<LayoutManager>public boolean hasPrevious()
hasPrevious in interface ListIterator<LayoutManager>public LayoutManager previous() throws NoSuchElementException
previous in interface ListIterator<LayoutManager>NoSuchElementExceptionpublic LayoutManager next() throws NoSuchElementException
next in interface Iterator<LayoutManager>next in interface ListIterator<LayoutManager>NoSuchElementExceptionpublic void remove()
throws NoSuchElementException
remove in interface Iterator<LayoutManager>remove in interface ListIterator<LayoutManager>NoSuchElementExceptionpublic void add(LayoutManager lm) throws UnsupportedOperationException
add in interface ListIterator<LayoutManager>UnsupportedOperationExceptionpublic void set(LayoutManager lm) throws UnsupportedOperationException
set in interface ListIterator<LayoutManager>UnsupportedOperationExceptionpublic int nextIndex()
nextIndex in interface ListIterator<LayoutManager>public int previousIndex()
previousIndex in interface ListIterator<LayoutManager>Copyright © 2023 Apache Software Foundation. All rights reserved.