Update: I got the first part working, but the corners are not. See part 2 below.
How do you apply a style to a tabBar (in GWT) so that you can a single tabBar at a time? I have a few different tabPanels that need to have different styles but I can't figure out how to correctly apply the style to the bar and then how to add that style to my CSS.
When I do something like:
tabBar.addstyle("thisisastyle");
It adds the style for the whole bar, I want to apply it to a set of items, specifically changing the background colors for individual tabs. I am using a DecoratedTabPanel and I have my own set of images for rounded corners and such that I would like to use. Also, once the style is correctly applied, how do I call it in the CSS? My current attempt is like so:
.topTabs .gwt-DecoratedTabBar .tabMiddleCenter {
Part 2
All the other CSS styles are easily applied after setting a style name to the tab bar and addressing them as follows:
.customizedStyleName .tabTopCenter {
background-image: url('images/centerTopImage.gif');
}
but this doesn't appear to work for the two corners, the base GWT overrides my CSS. The CSS for the right corner looks like this:
html > body .gwt-DecoratedTabBar .tabTopRight {
when inspecting it in Firebug (yah Firefox). Can anyone tell me how to override this?