On Mon, Feb 23, 2009 at 7:22 AM, Eugen Paraschiv <[email protected]> wrote:
> I have a question related to widget creation: is it indicated (to use
> deferred binding and have my code base as small as possible) to create
> my widgets via GWT.create() or can I still have the benefits while
> still creating the widgets via the constructor?
> I ask this because of the limitations of GWT.create(), limitations
> such as:
> - no-args constructor
> - no singleton support (I have some of my widgets as singletons, which
> is not possible if I create them using GWT.create())
>
> So, what is the recommended way to instantiate my widgets?

GWT.create() is obviously not what you think it is.  As far as I know,
you can't create any widgets with GWT.create().  The constructor is
the most common way of insantiating new widgets, I would think, but
some widgets can be constructed by wrapping an existing DOM node, and
I think you do that with a static method.  I have no idea which way is
better--I'd bet it depends on your scenario.

Ian

--~--~---------~--~----~------------~-------~--~----~
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