On 12 sep, 14:17, Folke <[EMAIL PROTECTED]> wrote:
> Yeah, the API doc is pretty thin and sometimes confusing.
> Widget.onLoad() is called by Widget.onAttach().
>
> While Widget.onAttach() is mostly for Panel implementers,
> Widget.onLoad() is for Widget implementers. Override onLoad() if you
> like to be notified when your Widget is being attached.

In brief:
 - if you want your code called just before child widgets are being
attached (and before the event listener is actually set), override
onAttach and put your code before super.onAttach()
 - if you want your code called after child widgets have been attached
(and after the event listener has been set), override onLoad (which is
equivalent to overriding onAttach and putting your code after
super.onAttach())

> Look at the 
> source:http://code.google.com/p/google-web-toolkit/source/browse/releases/1....

Yes, it's always the best solution when you wonder how things work.
And given that the source is included within gwt-user.jar, hovering a
method while maintain the shift key depressed shows you the method's
code (in Eclipse), so it's really really easy.

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