|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
com.vaadin.client.communication.AbstractServerConnectorEvent<StateChangeEvent.StateChangeHandler>
com.vaadin.client.communication.StateChangeEvent
public class StateChangeEvent
| Nested Class Summary | |
|---|---|
static interface |
StateChangeEvent.StateChangeHandler
Event handler that gets notified whenever any part of the state has been updated by the server. |
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
com.google.gwt.event.shared.GwtEvent.Type<H> |
| Field Summary | |
|---|---|
static com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> |
TYPE
Type of this event, used by the event bus. |
| Constructor Summary | |
|---|---|
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,
java.util.Set<java.lang.String> changedPropertiesSet)
Deprecated. As of 7.0.1, use StateChangeEvent(ServerConnector, JSONObject, boolean)
instead for improved performance. |
|
| Method Summary | |
|---|---|
void |
dispatch(StateChangeEvent.StateChangeHandler listener)
Sends this event to the given handler. |
com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> |
getAssociatedType()
|
java.util.Set<java.lang.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(java.lang.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. |
| Methods inherited from class com.vaadin.client.communication.AbstractServerConnectorEvent |
|---|
getConnector, setConnector |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final com.google.gwt.event.shared.GwtEvent.Type<StateChangeEvent.StateChangeHandler> TYPE
| Constructor Detail |
|---|
@Deprecated
public StateChangeEvent(ServerConnector connector,
java.util.Set<java.lang.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 properties
public 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 false| Method Detail |
|---|
public 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)
AbstractServerConnectorEvent
dispatch in class AbstractServerConnectorEvent<StateChangeEvent.StateChangeHandler>listener - The handler to dispatch.@Deprecated public java.util.Set<java.lang.String> getChangedProperties()
hasPropertyChanged(String) instead
for improved performance.
@Deprecated public FastStringSet getChangedPropertiesFastSet()
hasPropertyChanged(String) instead
for improved performance.
public boolean hasPropertyChanged(java.lang.String property)
property - the name of the property to check
true if the property has changed, else
false>public boolean isInitialStateChange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||