Package com.vaadin.flow.component.grid
Class Grid.UpdateQueue
- java.lang.Object
-
- com.vaadin.flow.component.grid.Grid.UpdateQueue
-
- All Implemented Interfaces:
ArrayUpdater.Update
,Serializable
protected static class Grid.UpdateQueue extends Object implements ArrayUpdater.Update
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateQueue(GridArrayUpdater.UpdateQueueData data, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear(int start, int length)
Clearslength
elements in array from thestart
position.void
commit()
void
commit(int updateId)
Commits changes for the givenupdateId
.void
enqueue(String name, Serializable... arguments)
GridArrayUpdater.UpdateQueueData
getData()
GetsGridArrayUpdater.UpdateQueueData
for this queue.protected Element
getElement()
void
set(int start, List<elemental.json.JsonValue> items)
Sets theitems
at thestart
position.
-
-
-
Constructor Detail
-
UpdateQueue
protected UpdateQueue(GridArrayUpdater.UpdateQueueData data, int size)
-
-
Method Detail
-
set
public void set(int start, List<elemental.json.JsonValue> items)
Description copied from interface:ArrayUpdater.Update
Sets theitems
at thestart
position.- Specified by:
set
in interfaceArrayUpdater.Update
- Parameters:
start
- the start indexitems
- the items to set
-
clear
public void clear(int start, int length)
Description copied from interface:ArrayUpdater.Update
Clearslength
elements in array from thestart
position.- Specified by:
clear
in interfaceArrayUpdater.Update
- Parameters:
start
- the start indexlength
- the number of elements to clear
-
commit
public void commit(int updateId)
Description copied from interface:ArrayUpdater.Update
Commits changes for the givenupdateId
.- Specified by:
commit
in interfaceArrayUpdater.Update
- Parameters:
updateId
- the update identifier of the commit
-
commit
public void commit()
-
enqueue
public void enqueue(String name, Serializable... arguments)
-
getElement
protected Element getElement()
-
getData
public GridArrayUpdater.UpdateQueueData getData()
GetsGridArrayUpdater.UpdateQueueData
for this queue.- Returns:
- the
GridArrayUpdater.UpdateQueueData
object.
-
-