Interface DataChangedHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDataChanged
(DataChangedEvent event) Method invoked when changes to the listGrid's data occur.
-
Method Details
-
onDataChanged
Method invoked when changes to the listGrid's data occur. This method will perform the necessary actions to ensure the changes to the data are reflected in the user interface, and then invoked thedataChangedComplete()
notification method.May be invoked by any of the following:
- a call to
addData()
,updateData()
, orremoveData()
-
DataSource
updates from the server forResultSet
data (triggered by record editing, etc.) -
fetches arriving back from the server for
ResultSet
data - changes to array data if made through APIs such as Array.set(), Array.add(), etc.
- cache invalidation
- filtering
setData()
will not call this method directly, but it may fire if one of the above listed events is triggered (e.g. a server fetch forResultSet
data).Note that the
operationType
parameter is optional and will be passed and contain the operation (e.g. "update") if this notification was triggered by a fetch, anaddData()
,updateData()
, orremoveData()
, or aDataSource
update forResultSet
data (the first three reasons listed above) but otherwise will be null.- Parameters:
event
- the event
- a call to
-