• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to reduce number of widgets on gwt page

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
His,

I wonder if there a pattern to reduce number of widgets in the mobile app i am developing since they turn out really CPU hungry. I have watched video from Google I/O where it goes that zou should only use widget if it needs to event handler and that task cannot be accomplished by a parent widget.

In my case there is a HTMLPanel which is filled with clickable panels (widgets) as the information comes from the server. I thought to present every clickable component a DivElement and have the parent HTMLPanel take sort out the events, but the add(Widget widget, String id) method of HTMLPanel accepts only widgets and DivElement is not one. So you are forced to create a widget for every clickable panel that comes from the server and add it as a widget to HTMLPanel, unless there is another, better way, to do that?

Thanks
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic