On Mar 19, 10:49 am, shahid <[email protected]> wrote: > I am a little confused about this and I wonder if someone could > clarify it for me. I have a CssResource interface called Css in my > application. Is it OK to have a reference to the interface in other > classes as : > > private Css css = MyClientBundle.uiStyles(); > > and then use it in various places in that class as: > > css.someClass1() > css.someClass2() > > OR > > is it rather better to use the full : > > MyClientBundle.uiStyles().boldFont(); evereywhere instead ? > > May be it doesn't make any difference. My concern is, will the > compiler copy all the styles into each class in the first case ?
It shouldn't make any noticeable difference (almost everything should be inlined in the end). At least I can assure you you don't have to worry about "the compiler [to] copy all the styles into each class". -- 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.
