You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.internal.change.

Class NodeChange

    • Constructor Detail

      • NodeChange

        public NodeChange​(StateNode node)

        Creates a new change for the given node.

        Parameters:

        node - the changed node

    • Method Detail

      • getNode

        public StateNode getNode()

        Gets the changed node.

        Returns:

        the node

      • toJson

        public elemental.json.JsonObject toJson​(ConstantPool constantPool)

        Serializes this change to JSON.

        Parameters:

        constantPool - the constant pool to use for serializing constant pool references

        Returns:

        a json representation of this change

      • populateJson

        protected abstract void populateJson​(elemental.json.JsonObject json,
                                             ConstantPool constantPool)

        Overridden by subclasses to populate a JSON object when serializing.

        Parameters:

        json - the json object to populate

        constantPool - the constant pool to use for serializing constant pool references