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
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 Summary
ConstructorsConstructorDescriptionNodeFeatureChange
(NodeFeature feature) Creates a new change for the given feature. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends NodeFeature>
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 Details
-
NodeFeatureChange
Creates a new change for the given feature.- Parameters:
feature
- the feature affected by the change
-
-
Method Details
-
getFeature
Gets the feature affected by the change.- Returns:
- the feature
-
populateJson
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
-