Interface HasDataChangedHandlers
- All Superinterfaces:
HasHandlers
- All Known Implementing Classes:
EditTree,TreeGrid,TreePalette
-
Method Summary
Modifier and TypeMethodDescriptionaddDataChangedHandler(DataChangedHandler handler) Notification method fired when the TreeGrid's data changes, for any reason.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addDataChangedHandler
Notification method fired when the TreeGrid's data changes, for any reason.Examples of why data changed might be:
- a call to
addData(),updateData(), orremoveData() -
DataSourceupdates from the server forResultTreedata (triggered by record editing, etc.) - fetches arriving back from the server for
ResultTreedata -
programmatic changes to
Treedata if made through APIs such asTree.add(),Tree.remove(), etc. - cache invalidation
- filtering
setData()doesn't call this notification directly, but it may fire if one of the above listed events is triggered (e.g. a server fetch forResultTreedata).Note that the
operationTypeparameter 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 aDataSourceupdate forResultTreedata (the first three reasons listed above) but otherwise will be null.- Parameters:
handler- the dataChanged handler- Returns:
HandlerRegistrationused to remove this handler
- a call to
-