Package 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeFeatureChange(NodeFeature feature)
Creates a new change for the given feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends NodeFeature>
getFeature()
Gets the feature affected by the change.protected void
populateJson(elemental.json.JsonObject json, ConstantPool constantPool)
Overridden by subclasses to populate a JSON object when serializing.-
Methods inherited from class com.vaadin.flow.internal.change.NodeChange
getNode, toJson
-
-
-
-
Constructor Detail
-
NodeFeatureChange
public NodeFeatureChange(NodeFeature feature)
Creates a new change for the given feature.- Parameters:
feature
- the feature affected by the change
-
-
Method Detail
-
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 classNodeChange
- Parameters:
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool references
-
-