Hi,

i didn't find out how to do it with DOM and i won't try any more
(thanks for this hint). Instead i was able to change the single tabs
due to setting the HTML as you told, but i wasn't able to set a CSS
style

The first solution sounds a bit like quick and dirty. I think i will
try the second one which sounds good to me. Pretty sophisticated work.
Thanks!

Greetings,
-Lord-67

On Apr 8, 3:13 pm, Ian Bambury <[email protected]> wrote:
> Hi,
> Don't use the DOM - Google might change the structure, that's what would
> break it.
>
> There are two possibilities:
>
> 1)
>
> Add HTML as the tab title
> When the enabled/disabled change happens, get it back and change the style
> class in the html string you get back and replace it (a simple replaceAll()
> would do).
>
> 2)
>
> Add a Label widget as the tab title
> Also add that label to an ArrayList (because there is no way to get it back
> from the tab, so you have to do it this way)
> When the enabled/disabled change happens, get the label from the ArrayList
> and do a setStyle() on it.
>
> The first way is kludgier, but simpler :-)
>
> Ian
>
> http://examples.roughian.com
>
> 2009/4/8 -Lord-67 <[email protected]>
>
>
>
> > @Ian Bambury: Thanks, i will try it with DOM or else if that doesn't
> > work the second way with html, just not sure if i will be able to do
> > that on my own since i am not that experienced :-). DOM should be
> > possible because the tabs don't change, i just want some of them to be
> > disabled at a certain point and enabled later on ...
>
> > @alan m: No problem, i was just confused about your post, i am
> > thankful for every help i can get ;-). As Ian said it's not the whole
> > TabBar i want to access (set style to 'disabled'), it's a single tab.
> > I already managed to disable them (see other thread i cited in my
> > first post) but i am not able to change the style of those disabled
> > tabs.
>
> > Thanks guys for the help, i will let you know wheater i was successful
> > or not!
>
> > Greetings,
> > -Lord-67
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to