com.vaadin.flow.internal.change.
Class ListClearChange<T extends Serializable>
- java.lang.Object
-
- com.vaadin.flow.internal.change.NodeChange
-
- com.vaadin.flow.internal.change.NodeFeatureChange
-
- com.vaadin.flow.internal.change.AbstractListChange<T>
-
- com.vaadin.flow.internal.change.ListClearChange<T>
-
Type Parameters:
T
- the type of the items in the node listAll Implemented Interfaces:
public class ListClearChange<T extends Serializable> extends AbstractListChange<T>
Change describing a clear operation in a
list
node feature.For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description ListClearChange(NodeList<T> list)
Creates a new list clear change.
-
Method Summary
All Methods Modifier and Type Method Description AbstractListChange<T>
copy(int indx)
Gets a copy of the change with the same data except
index
.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.AbstractListChange
getIndex, getNodeList, setIndex
-
Methods inherited from class com.vaadin.flow.internal.change.NodeFeatureChange
getFeature
-
Methods inherited from class com.vaadin.flow.internal.change.NodeChange
getNode, toJson
-
-
-
-
Method Detail
-
copy
public AbstractListChange<T> copy(int indx)
Description copied from class:
AbstractListChange
Gets a copy of the change with the same data except
index
.Specified by:
copy
in classAbstractListChange<T extends Serializable>
Parameters:
indx
- the new index of the changeReturns:
a copy of the change based on new index
-
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 classNodeFeatureChange
Parameters:
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool references
-
-