Re: TabLayoutPanel with custom widget for tabs
Hi Alfredo,
Thanks for the reply.
It turns out the "magic sauce" for getting the elements to display
correctly is to use InlineLabel or InlineHTML rather than plain Label
or HTML. Thanks to your code, all is good.
Cheers.
> private InlineLabel tabItemTittle;
> private String text;
> private Image image;
>
> public TabItem(String title) {
> tabItem = new FlowPanel();
> initWidget(tabItem);
> tabItemTittle = new InlineLabel(title);
> tabItem.add(tabItemTittle);
> image = new Image(icons.asteriskOrange());
> tabItem.add(image);
> addHandlers();
> }
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home