Thursday, November 3, 2011

Inserting Widgets and simple text into panel

Hello, I want create a panel with a flow layout (for ex. FlowPanel)
which contains 2 widgets and a large text at the end (not a <div> or
another element)
I tried to add the widgets and then set the panel's element text:

flowPanel.add(w1)
flowPanel.add(w2)
flowPanel.getElement.setInnerText(largeText)

but the last line overrides all other widgets.

How can i do this (but without using UIBinder for now.) ?

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

No comments:

Post a Comment