Re: Add Widget to the a Panel at first Position?

2013-12-10 Thread Ivan Lazov
Hi, Oliver The FlowPanelhttp://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FlowPanel.html allows you to do that using the method *insert http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FlowPanel.html#insert(com.google.gwt.user.client.ui.Widget,

Add Widget to the a Panel at first Position?

2013-12-07 Thread confile
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 /

Re: Add Widget to the a Panel at first Position?

2013-12-07 Thread Oliver Krylow
There should be something like panel.insertBefore(...) which could satisfy both your requests. On Dec 7, 2013 4:10 PM, confile michael.gorsk...@googlemail.com wrote: If you want to add a Widget to a lets say FlowPanel you have to do the following: @UiFieldFlowPanel panel; Widget widget; //