public class ListSpliceEvent extends ReactiveValueChangeEvent
NodeList changes.| Constructor and Description |
|---|
ListSpliceEvent(NodeList source,
int index,
JsArray<?> remove,
JsArray<?> add,
boolean clear)
Creates a new list splice event.
|
| Modifier and Type | Method and Description |
|---|---|
JsArray<?> |
getAdd()
Gets an array of added items.
|
int |
getIndex()
Gets the start index of the changes.
|
JsArray<?> |
getRemove()
Gets an array of removed items.
|
NodeList |
getSource()
Gets the reactive value from which this event originates.
|
boolean |
isClear()
Gets whether this event is a
clear event. |
public ListSpliceEvent(NodeList source, int index, JsArray<?> remove, JsArray<?> add, boolean clear)
source - the changed listindex - the start index of the changesremove - the removed items, not nulladd - the added items, not nullclear - true when this is an event triggered upon
removing all the nodes of the given list, false
otherwisepublic NodeList getSource()
ReactiveValueChangeEventgetSource in class ReactiveValueChangeEventpublic int getIndex()
public JsArray<?> getRemove()
nullpublic JsArray<?> getAdd()
nullpublic boolean isClear()
clear event.true if the event was triggered after a full clear,
false otherwise.Copyright © 2000–2019 Vaadin Ltd. All rights reserved.