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.StateChangeHandlerusingUILifecycle.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 extends Object>
-
-
Constructor Summary
Constructors Constructor Description StateChangeEvent(UILifecycle uiLifecycle)Creates a new event connected to the given lifecycle instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispatch(UILifecycle.StateChangeHandler listener)com.google.web.bindery.event.shared.Event.Type<UILifecycle.StateChangeHandler>getAssociatedType()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.UILifecyclegetUiLifecycle()Gets theUILifecycleinstance which triggered this event.
-
-
-
Constructor Detail
-
StateChangeEvent
public StateChangeEvent(UILifecycle uiLifecycle)
Creates a new event connected to the given lifecycle instance.- Parameters:
uiLifecycle- the lifecycle instance
-
-
Method Detail
-
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
public UILifecycle getUiLifecycle()
Gets theUILifecycleinstance which triggered this event.- Returns:
- the
UILifecyclewhich triggered the event
-
dispatch
protected void dispatch(UILifecycle.StateChangeHandler listener)
- Specified by:
dispatchin classcom.google.web.bindery.event.shared.Event<UILifecycle.StateChangeHandler>
-
-