There should be something like

panel.insertBefore(...)

which could satisfy both your requests.
On Dec 7, 2013 4:10 PM, "confile" <[email protected]> wrote:

> If you want to add a Widget to a lets say FlowPanel you have to do the
> following:
>
> @UiFieldFlowPanel panel;
> Widget widget; // some widget
>
> panel.add(widget)
>
> This appends the widget to the panel, which means it comes a last position
> of the panel's child Widgets.
>
> I.e.:
>
> <div>
>  <div class="w1" />
>  <div class="w2" />
>  <div class="w3" />
>  <div class="widget" /></div>
>
> *Is there any way to get a newly inserted widget a the first position,
> i.e., make a prepend, without removing all the other widgets first?*
>
> *Is there any way to get a newly inserted widget a a certain index within
> the parent?*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to