Package com.vaadin.client
Class UILifecycle.StateChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<UILifecycle.StateChangeHandler>
com.vaadin.client.UILifecycle.StateChangeEvent
- Enclosing class:
UILifecycle
public static class UILifecycle.StateChangeEvent
extends com.google.web.bindery.event.shared.Event<UILifecycle.StateChangeHandler>
Event triggered when the lifecycle state of a UI is changed.
To listen for the event add a UILifecycle.StateChangeHandler using
UILifecycle.addHandler(StateChangeHandler).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.web.bindery.event.shared.Event
com.google.web.bindery.event.shared.Event.Type<H> -
Constructor Summary
ConstructorsConstructorDescriptionStateChangeEvent(UILifecycle uiLifecycle) Creates a new event connected to the given lifecycle instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(UILifecycle.StateChangeHandler listener) com.google.web.bindery.event.shared.Event.Type<UILifecycle.StateChangeHandler> static com.google.web.bindery.event.shared.Event.Type<UILifecycle.StateChangeHandler> getType()Gets the type of the event after ensuring the type has been created.Gets theUILifecycleinstance which triggered this event.Methods inherited from class com.google.web.bindery.event.shared.Event
getSource, setSource, toDebugString, toString
-
Constructor Details
-
StateChangeEvent
Creates a new event connected to the given lifecycle instance.- Parameters:
uiLifecycle- the lifecycle instance
-
-
Method Details
-
getType
public static com.google.web.bindery.event.shared.Event.Type<UILifecycle.StateChangeHandler> getType()Gets the type of the event after ensuring the type has been created.- Returns:
- the type for the event
-
getAssociatedType
public com.google.web.bindery.event.shared.Event.Type<UILifecycle.StateChangeHandler> getAssociatedType()- Specified by:
getAssociatedTypein classcom.google.web.bindery.event.shared.Event<UILifecycle.StateChangeHandler>
-
getUiLifecycle
Gets theUILifecycleinstance which triggered this event.- Returns:
- the
UILifecyclewhich triggered the event
-
dispatch
- Specified by:
dispatchin classcom.google.web.bindery.event.shared.Event<UILifecycle.StateChangeHandler>
-