There is no need for such a tutorial since GWT source is available.
You just have to study existing widget's code.
Concerning the event mechanism, the following example shows how to
deal with click events :
public class MyWidget extends Widget implements SourecesClickEvents {
private ClickListenerCollection clickListeners;
public void addClickListener(ClickListener listener) {
if (clickListeners == null) {
clickListeners = new ClickListenerCollection();
sinkEvents(Event.ONCLICK);
}
clickListeners.add(listener);
}
public void removeClickListener(ClickListener listener) {
if (clickListeners != null) {
clickListeners.remove(listener);
}
}
}
Pierre
On Sep 2, 6:58 am, Clundahl <[EMAIL PROTECTED]> wrote:
> In the tutorial there is adviced that one should make new widgets
> primarely by composing those of the ones that is allready provided in
> the kit. I cant find any good advice on how to make one with only the
> html element wrapper, more from scratch. Does anybody know of a
> tutorial article about this? Especially I am interested in how to
> correctly connect the event listening mechanisms to the rest of my gwt
> application.
>
> Regards
>
> Clundahl
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---