Meaningless Drivel is fun!*
The moose likes GWT and the fly likes how to reduce number of widgets on gwt page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "how to reduce number of widgets on gwt page " Watch "how to reduce number of widgets on gwt page " New topic
Author

how to reduce number of widgets on gwt page

Denis Wen
Ranch Hand

Joined: Nov 11, 2008
Posts: 33
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
 
 
subject: how to reduce number of widgets on gwt page
 
Similar Threads
GWT and creation of own widgets
Adding widgets to FlexTable
difference between class with static method and singleton pattern
Ilja - Singleton pattern in the faq ?
How to add Dynamic GUI components using SWT