Package com.google.gwt.user.client.ui
Class FiniteWidgetIterator
java.lang.Object
com.google.gwt.user.client.ui.FiniteWidgetIterator
Iterator over a finite number of widgets, which are stored in a delegate
class (usually a widget panel).
In order to use this class, assign each widget in the panel an arbitrary
index. For example, HeaderPanel
defines the header as index 0, the
content as index 1, and the footer as index 2. Construct a new
FiniteWidgetIterator
with a FiniteWidgetIterator.WidgetProvider
that provides the
child widgets.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Provides widgets to the iterator. -
Constructor Summary
ConstructorDescriptionFiniteWidgetIterator
(FiniteWidgetIterator.WidgetProvider provider, int widgetCount) Construct a newFiniteWidgetIterator
. -
Method Summary
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
-
Constructor Details
-
FiniteWidgetIterator
Construct a newFiniteWidgetIterator
.The widget count is the number of child widgets that the panel supports, regardless of whether or not they are set.
- Parameters:
provider
- the widget providerwidgetCount
- the finite number of widgets that can be provided
-
-
Method Details