aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to reduce number of widgets on gwt page
 
Similar Threads
difference between class with static method and singleton pattern
GWT and creation of own widgets
Ilja - Singleton pattern in the faq ?
Adding widgets to FlexTable
How to add Dynamic GUI components using SWT