Class EmptyChange

  • All Implemented Interfaces:
    Serializable

    public class EmptyChange
    extends NodeFeatureChange
    Empty change for the feature to report its presence for the client (send the feature information even though its data is empty).

    For internal use only. May be renamed or removed in a future release.

    Since:
    1.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Detail

      • EmptyChange

        public EmptyChange​(NodeFeature feature)
        Creates a new empty change.
        Parameters:
        feature - the feature to populate on the client
    • Method Detail

      • populateJson

        protected void populateJson​(elemental.json.JsonObject json,
                                    ConstantPool constantPool)
        Description copied from class: NodeChange
        Overridden by subclasses to populate a JSON object when serializing.
        Overrides:
        populateJson in class NodeFeatureChange
        Parameters:
        json - the json object to populate
        constantPool - the constant pool to use for serializing constant pool references