public class StateChangeEvent extends AbstractServerConnectorEvent<StateChangeEvent.StateChangeHandler>
| Modifier and Type | Class and Description |
|---|---|
static interface |
StateChangeEvent.StateChangeHandler
Event handler that gets notified whenever any part of the state has been
updated by the server.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> |
TYPE
Type of this event, used by the event bus.
|
| Constructor and Description |
|---|
StateChangeEvent(ServerConnector connector,
FastStringSet changedProperties)
Deprecated.
As of 7.0.2, use
StateChangeEvent(ServerConnector, JsonObject, boolean)
instead for improved performance. |
StateChangeEvent(ServerConnector connector,
JsonObject stateJson,
boolean initialStateChange)
/** Creates a new state change event.
|
StateChangeEvent(ServerConnector connector,
Set<String> changedPropertiesSet)
Deprecated.
As of 7.0.1, use
StateChangeEvent(ServerConnector, JsonObject, boolean)
instead for improved performance. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(StateChangeEvent.StateChangeHandler listener)
Sends this event to the given handler.
|
com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> |
getAssociatedType() |
Set<String> |
getChangedProperties()
Deprecated.
As of 7.0.1, use
hasPropertyChanged(String) instead
for improved performance. |
FastStringSet |
getChangedPropertiesFastSet()
Deprecated.
As of 7.0.1, use
hasPropertyChanged(String) instead
for improved performance. |
boolean |
hasPropertyChanged(String property)
Checks whether the give property has changed.
|
boolean |
isInitialStateChange()
Checks if the state change event is the first one for the given
connector.
|
getConnector, setConnectorassertLive, getSource, isLive, kill, revivepublic static final com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> TYPE
@Deprecated public StateChangeEvent(ServerConnector connector, Set<String> changedPropertiesSet)
StateChangeEvent(ServerConnector, JsonObject, boolean)
instead for improved performance.connector - the event whose state has changedchangedPropertiesSet - a set of names of the changed properties@Deprecated public StateChangeEvent(ServerConnector connector, FastStringSet changedProperties)
StateChangeEvent(ServerConnector, JsonObject, boolean)
instead for improved performance.connector - the event whose state has changedchangedProperties - a set of names of the changed propertiespublic StateChangeEvent(ServerConnector connector, JsonObject stateJson, boolean initialStateChange)
connector - the event whose state has changedstateJson - the JSON representation of the state changeinitialStateChange - true if the state change is for a new connector,
otherwise falsepublic com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> getAssociatedType()
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<StateChangeEvent.StateChangeHandler>public void dispatch(StateChangeEvent.StateChangeHandler listener)
AbstractServerConnectorEventdispatch in class AbstractServerConnectorEvent<StateChangeEvent.StateChangeHandler>listener - The handler to dispatch.@Deprecated public Set<String> getChangedProperties()
hasPropertyChanged(String) instead
for improved performance.@Deprecated public FastStringSet getChangedPropertiesFastSet()
hasPropertyChanged(String) instead
for improved performance.public boolean hasPropertyChanged(String property)
property - the name of the property to checktrue if the property has changed, else
false>public boolean isInitialStateChange()
Copyright © 2018 Vaadin Ltd. All rights reserved.