• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic