|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.event.shared.GwtEvent<H>
H
- handler typepublic abstract class GwtEvent<H extends EventHandler>
Root of all GWT events. All GWT events are considered dead and should no
longer be accessed once the HandlerManager
which originally fired the
event finishes with it. That is, don't hold on to event objects outside of
your handler methods.
Nested Class Summary | |
---|---|
static class |
GwtEvent.Type<H>
Type class used to register events with the HandlerManager . |
Constructor Summary | |
---|---|
protected |
GwtEvent()
Constructor. |
Method Summary | |
---|---|
protected void |
assertLive()
Asserts that the event still should be accessed. |
protected abstract void |
dispatch(H handler)
Should only be called by HandlerManager . |
abstract GwtEvent.Type<H> |
getAssociatedType()
Returns the type used to register this event. |
java.lang.Object |
getSource()
Returns the source that last fired this event. |
protected boolean |
isLive()
Is the event current live? |
protected void |
kill()
Kill the event. |
protected void |
revive()
Revives the event. |
java.lang.String |
toDebugString()
This is a method used primarily for debugging. |
java.lang.String |
toString()
The toString() for abstract event is overridden to avoid accidently including class literals in the the compiled output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected GwtEvent()
Method Detail |
---|
public abstract GwtEvent.Type<H> getAssociatedType()
public java.lang.Object getSource()
public java.lang.String toDebugString()
public java.lang.String toString()
GwtEvent
#toDebugString to get more information about the event.
toString
in class java.lang.Object
protected void assertLive()
revive()
.
protected abstract void dispatch(H handler)
HandlerManager
. In other words, do not use
or call.
handler
- handlerprotected final boolean isLive()
protected void kill()
protected void revive()
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |