com.vaadin.flow.internal.change.

Class NodeFeatureChange

java.lang.Object
com.vaadin.flow.internal.change.NodeChange
com.vaadin.flow.internal.change.NodeFeatureChange

All Implemented Interfaces:

Serializable

Direct Known Subclasses:

AbstractListChange, EmptyChange, MapPutChange, MapRemoveChange

public abstract class NodeFeatureChange extends NodeChange

Base class for all node changes related to a feature.

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

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • NodeFeatureChange

      public NodeFeatureChange(NodeFeature feature)

      Creates a new change for the given feature.

      Parameters:

      feature - the feature affected by the change

  • Method Details

    • getFeature

      public Class<? extends NodeFeature> getFeature()

      Gets the feature affected by the change.

      Returns:

      the feature

    • 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.

      Specified by:

      populateJson in class NodeChange

      Parameters:

      json - the json object to populate

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