In more or less big project I'd rather create set of widgets, which do
not need addition of the external styles.
So, all styles are applied in constructor.


And then - you just create widget, and add it to a panel.

On Sep 3, 8:14 am, Ed <[email protected]> wrote:
> Ahhhh oepsss.. good point Ian, thanks... :(
> Mistake in the code examples...
> They should be:
>
> So do something like this:
> Widget wid = new HTML("test");
> SomePanel panel = new SomePanel();
> wid.addStyleName("someStyleName");
> panel.add(wid);
>
> And NOT this:
> Widget wid = new HTML("test");
> SomePanel panel = new SomePanel();
> panel.add(wid);
> wid.addStyleName("someStyleName");
--~--~---------~--~----~------------~-------~--~----~
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