java.lang.Object | |
↳ | com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler> |
Known Direct Subclasses
AttachEvent,
BeforeSelectionEvent<T>,
CellPreviewEvent<T>,
CloseEvent<T>,
ColumnSortEvent,
DomEvent<H extends EventHandler>,
EntityProxyChange<P extends EntityProxy>,
Event.NativePreviewEvent,
FormPanel.SubmitCompleteEvent,
FormPanel.SubmitEvent,
HighlightEvent<V>,
InitializeEvent,
OpenEvent<T>,
PlaceChangeEvent,
PlaceChangeRequestEvent,
and
9 others.
|
Known Indirect Subclasses
BlurEvent,
ChangeEvent,
ClickEvent,
ContextMenuEvent,
DoubleClickEvent,
ErrorEvent,
FocusEvent,
GestureChangeEvent,
GestureEndEvent,
GestureStartEvent,
HumanInputEvent<H extends EventHandler>,
KeyCodeEvent<H extends EventHandler>,
KeyDownEvent,
KeyEvent<H extends EventHandler>,
KeyPressEvent,
and
16 others.
|
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 Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GwtEvent.Type<H> | Type class used to register events with the HandlerManager . |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the type used to register this event.
| |||||||||||
Returns the source that last fired this event.
| |||||||||||
This is a method used primarily for debugging.
| |||||||||||
The toString() for abstract event is overridden to avoid accidently
including class literals in the the compiled output.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that the event still should be accessed.
| |||||||||||
Should only be called by
HandlerManager . | |||||||||||
Is the event current live?
| |||||||||||
Kill the event.
| |||||||||||
Revives the event.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor.
Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.
Returns the source that last fired this event.
This is a method used primarily for debugging. It gives a string representation of the event details. This does not override the toString method because the compiler cannot always optimize toString out correctly. Event types should override as desired.
The toString() for abstract event is overridden to avoid accidently
including class literals in the the compiled output. Use GwtEvent
#toDebugString to get more information about the event.
Asserts that the event still should be accessed. All events are considered
to be "dead" after their original handler manager finishes firing them. An
event can be revived by calling revive()
.
Should only be called by HandlerManager
. In other words, do not use
or call.
handler | handler |
---|
Is the event current live?
Kill the event. After the event has been killed, users cannot really on its values or functions being available.
Revives the event. Used when recycling event instances.