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, wait
forEachRemaining
protected 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>
NoSuchElementException
public LayoutManager next() throws NoSuchElementException
next
in interface Iterator<LayoutManager>
next
in interface ListIterator<LayoutManager>
NoSuchElementException
public void remove() throws NoSuchElementException
remove
in interface Iterator<LayoutManager>
remove
in interface ListIterator<LayoutManager>
NoSuchElementException
public void add(LayoutManager lm) throws UnsupportedOperationException
add
in interface ListIterator<LayoutManager>
UnsupportedOperationException
public void set(LayoutManager lm) throws UnsupportedOperationException
set
in interface ListIterator<LayoutManager>
UnsupportedOperationException
public int nextIndex()
nextIndex
in interface ListIterator<LayoutManager>
public int previousIndex()
previousIndex
in interface ListIterator<LayoutManager>
Copyright © 2025 Apache Software Foundation. All rights reserved.