On 1 Maj, 12:12, hezjing <[email protected]> wrote:
> It seems that we cannot add a same label more than once.


Yup. Took me a while to figure out.

Now I usually use a common interface like this for all my widget-
making code:

interface WidgetProvider {
  Widget createNewWidget();
}

This both ensures that I can introduce on-demand creation of objects
if I need it, and that I can create several instances configured in
identical ways by using this method, provided that it is implemented
in a sensible way.

Regards,
  Anders
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to