void add(Widget w)
void clear()
java.util.Iterator iterator()
boolean remove(Widget w)
But there is no way, other than looping through using the iterator, to
figure out how many child widgets a panel has? What's up with that?
This is a bug, right? I'm not going crazy?
Thanks,
Eric
I would like to see getWidgetCount() implemented in ComplexPanel since
getChildren() is protected.
-= Mat
--
Mat Gessel
http://www.asquare.net
The previous Panel did not have a getWidgetCount method. Some panels do
not contain more than one child element, some panels do. Some panels
implement HasWidgets, some implement IndexedPanel, and some return
WidgetCollection which has a getSize() method.
Here are the classes in the 1.1 release that implement IndexedPanel
DeckPanel, FlowPanel, HorizontalPanel, StackPanel, TabPanel,
VerticalPanel
and subclasses of those.
The following classes extend ComplexPanel and therefore you can obtain
the size via getChildren().size():
AbsolutePanel, HTMLPanel
and subclasses of those.
-Vivian
GWT Team
-Vivian
GWT Team
Thanks,
Eric
I think you may be thinking of a different class. The PopupPanel can
only hold a single widget. There is no real reason to iterate over the
children, just call getWidget().
Rob