Tuesday, January 7, 2014

Re: Why are GWT widgets heavy?

> One issue with many simple built-in widgets in GWT is that they register event handlers even when you 
> don't handle any event yourself, just to be able to update the styles (focus, hover, etc.)

I never really understood why they "always" add a listener. So I suppose this will change in the "near" future as this should be realized through CSS I suppose?

BTW: I find it hard to design widgets correctly: from one side, it's great to use a html template and throw in the widgets at the correct locations (UIBinder, HTMLPanel). However, considering OO design, you end up with small html pieces which are more like one or a few widgets, which are nice to reuse of course (the smaller the pieces, the better the reuse), but more "heavy" as you end up more widgets as they are often the root of a small html piece that you want to reuse.
Currently I use Element builders, and add all stuff myself, and hardly use Widgets directly. This works ok, but I am still not completely  happy, curious what the future brings (Web Components)...

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate