Class InitializeEvent
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<InitializeHandler>
-
- com.google.gwt.event.logical.shared.InitializeEvent
-
public class InitializeEvent extends GwtEvent<InitializeHandler>
Fired when the event source is initialized.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InitializeEvent()
Construct a newInitializeEvent
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(InitializeHandler handler)
Should only be called byHandlerManager
.static <S extends HasInitializeHandlers & HasHandlers>
voidfire(S source)
Fires a initialize event on all registered handlers in the handler source.GwtEvent.Type<InitializeHandler>
getAssociatedType()
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.static GwtEvent.Type<InitializeHandler>
getType()
Ensures the existence of the handler hook and then returns it.-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
-
-
-
Constructor Detail
-
InitializeEvent
protected InitializeEvent()
Construct a newInitializeEvent
.
-
-
Method Detail
-
fire
public static <S extends HasInitializeHandlers & HasHandlers> void fire(S source)
Fires a initialize event on all registered handlers in the handler source.- Type Parameters:
S
- The handler source- Parameters:
source
- the source of the handlers
-
getType
public static GwtEvent.Type<InitializeHandler> getType()
Ensures the existence of the handler hook and then returns it.- Returns:
- returns a handler hook
-
getAssociatedType
public final GwtEvent.Type<InitializeHandler> getAssociatedType()
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<InitializeHandler>
- Returns:
- the type
-
dispatch
protected void dispatch(InitializeHandler handler)
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<InitializeHandler>
- Parameters:
handler
- handler- See Also:
EventBus.dispatchEvent(Event, Object)
-
-