On Mar 30, 12:26 pm, Vhann3000 <[email protected]> wrote:

> Second, I may very well be wrong, but the way I understand it, if I
> don't override the ScrollPanel's iterator(), then it will return the
> VerticalPanel (as the VerticalPanel is the sole child widget of the
> ScrollPanel). Of course, I don't want that, I want to be able to list
> the VerticalPanel's child widgets with
> scrollVerticalPanelInstance.iterator().

I just tested and, indeed, if I don't override the iterator(), it just
lists the
nested Panel:


public class ScrollFlowPanel extends ScrollPanel {
        private FlowPanel fPanel;

        public ScrollFlowPanel() {
                fPanel = new FlowPanel();
                super.add(fPanel);

                for (Iterator i = iterator(); i.hasNext(); ) {
                        GWT.log("Widget class = " + i.next().getClass());
                }
        }
}

This code outputs:
Widget class = class com.google.gwt.user.ui.FlowPanel

So how can I hide the nested Panels from the caller and still have my
Handlers work?
What am I doing wrong?

Regards,
Olivier

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to