Package com.vaadin.flow.internal.change
Class NodeChange
java.lang.Object
com.vaadin.flow.internal.change.NodeChange
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NodeAttachChange
,NodeDetachChange
,NodeFeatureChange
Base class describing a change to a state node.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNode()
Gets the changed node.protected abstract void
populateJson
(elemental.json.JsonObject json, ConstantPool constantPool) Overridden by subclasses to populate a JSON object when serializing.elemental.json.JsonObject
toJson
(ConstantPool constantPool) Serializes this change to JSON.
-
Constructor Details
-
NodeChange
Creates a new change for the given node.- Parameters:
node
- the changed node
-
-
Method Details
-
getNode
Gets the changed node.- Returns:
- the node
-
toJson
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
Overridden by subclasses to populate a JSON object when serializing.- Parameters:
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool references
-