the client application.. that consumes this events dont really need this
method as like in the example you implement TYPE as static.. e point it to
the EventBus..

but i guess the GWT framework uses it anyway..

suppose that  i provide you a framework and want to obligate you to
implement a method
that i use in the framework logic.. and cant know previously what you will
implement ..
a good way to do it.. its obligate to implement the method.. via interface..
or abstract method

maybe opening the eventhandler source??

(but if you find out its useless, dont forget to let me know) :)

Regards,

Fabio Kaminski


On Mon, Mar 8, 2010 at 7:33 PM, scope <sdco...@gmail.com> wrote:

>
> 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 google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to