com.jgoodies.forms.extras
Class FormLayoutUtils.ConstraintIterator
- FormLayoutUtils
public static final class FormLayoutUtils.ConstraintIterator
Iterates over a FormLayout container's CellConstraints
.
The container's child component collection and the layout's
constraints collection must not be changed during the iteration;
otherwise the behavior of this iterator is unspecified and unsafe.
ConstraintIterator(Container container) - Constructs a ConstraintIterator for the given FormLayout container.
|
ConstraintIterator
public ConstraintIterator(Container container)
Constructs a ConstraintIterator for the given FormLayout container.
Useful to iterate over the container's CellConstraints
.
container
- the layout container
hasNext
public boolean hasNext()
Returns true if the iteration has more elements. (In other
words, returns true if next would return an element
rather than throwing an exception.)
- true if the iterator has more elements.
nextConstraints
public CellConstraints nextConstraints()
Returns the next element in the iteration.
- the next element in the iteration.
Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.