Hey there-

I've been slowly going through all the GWT tutorials in an effort to
understand the capabilities of the tool.

Could someone please explain why the GwtEvent<T> subclasses from the
MVP article override getAssociatedType()?

The article and code samples can be found here:

http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

An example from EditContactEvent.java is:

  @Override
  public Type<EditContactEventHandler> getAssociatedType() {
    return TYPE;
  }

Is this necessary?  Since GwtEvent is a template (generic in Java
terms), won't the default implementation of the method suffice?

Thanks and take care.

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