Hello, i'm trying to develop a custom application event system using
my own events and a base event (inherited by the other event types)
Here is the code of the base event class:
public class EBaseEvent<H extends EventHandler> extends GwtEvent<H>{
public static GwtEvent.Type<H> TYPE = new GwtEvent.Type<H>();
@Override
public GwtEvent.Type<H> getAssociatedType() {
return TYPE;
}
}
The first pb is a compilation problem: i get the message:
"Cannot make a static reference to a non-static type H"
I don't understand, why is H a static type ? and how can i resolve the
pb ? (i'm not very good working with parametrized types)
The second pb is that i'm not sure if this is a good/correct approach.
Any ideas ?
--
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.