In general, for better performance. Would you rather

public SomePanel extends Panel {

    public SomePanel() {
        setWidth("100px");
        setWidth("100px");
        ............
    }
    ..........
}

OR

panel-style {
    width: 100px;
    height: 100px;
}

I tend to try setting every css style attribute during the creation of
a panel object just cause I think it's more readable and more flexible
to organize code outside of CSS style sheets. But is this a better
approach trying to achieve better performance or not or does it really
matter?

--~--~---------~--~----~------------~-------~--~----~
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