I have trouble building a custom widget/panel.
Custom Element: MyElement extends Anchor implements ClickListener
Custom Panel: MyPanel extends ComplexPanel
Now what I want is adding a mixture of plain text and custom elements
to my panel, in the end the structure should be the following:
<span>(MyPanel)
...some text
...<a> </a>(MyElement)
...some text
...<a> </a>(MyElement)
...
</span>
I tried to build the content as a html string and apply it with
DOM.setInnerHTML(content). It looks pretty well but removes event
handling.
<span>(MyPanel)
...<a> </a>(MyElement)
...<a> </a>(MyElement)
...
</span>
...works without problems.
Any suggestions? Thanks for you help.
--
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