Hi Ando,

You can use TabPanel.add(Widget tabContent, Widget tabHeader).

The tabHeader widgets can be any type of widget, so you can style them
how you like. If you extend TabPanel with your own method to create
the tab header widgets when you add tabs, then you could assign each
new tab header added a particular colour style from a set list based
on tab index. If you MOD it, then the colour cycle would repeat.

gregor

On Mar 1, 8:25 pm, Ando <and...@infiniteloop.co.nz> wrote:
> Hi,
>
> I am trying to set a unique color for each tab in a TabPanel, i.e I
> want the first tab to be blue, the second to be green etc. The only
> way I can see to do this is to get a hold of the underlying DOM and
> set the css id manually, but even then I'm not sure this will work. Is
> there an easier way to do this?
>
> Thanks,
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to