Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

how to reduce number of widgets on gwt page

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • 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
 
I don't like that guy. The tiny ad agrees with me.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!