com.vaadin.client.communication.

Class StateChangeEvent

    • Constructor Detail

      • StateChangeEvent

        public StateChangeEvent​(ServerConnector connector,
                                elemental.json.JsonObject stateJson,
                                boolean initialStateChange)

        /** Creates a new state change event.

        Parameters:

        connector - the event whose state has changed

        stateJson - the JSON representation of the state change

        initialStateChange - true if the state change is for a new connector, otherwise false

    • Method Detail

      • getChangedProperties

        @Deprecated
        public Set<String> getChangedProperties()
        Deprecated.
        As of 7.0.1, use hasPropertyChanged(String) instead for improved performance.

        Gets the properties that have changed.

        Returns:

        a set of names of the changed properties

      • getChangedPropertiesFastSet

        @Deprecated
        public FastStringSet getChangedPropertiesFastSet()
        Deprecated.
        As of 7.0.1, use hasPropertyChanged(String) instead for improved performance.

        Gets the properties that have changed.

        Returns:

        a set of names of the changed properties

      • hasPropertyChanged

        public boolean hasPropertyChanged​(String property)

        Checks whether the give property has changed.

        Parameters:

        property - the name of the property to check

        Returns:

        true if the property has changed, else false>

      • isInitialStateChange

        public boolean isInitialStateChange()

        Checks if the state change event is the first one for the given connector.

        Returns:

        true if this is the first state change event for the connector, false otherwise

        Since:

        7.1