Interface HasDataChangedHandlers

All Superinterfaces:
HasHandlers
All Known Implementing Classes:
EditTree, TreeGrid, TreePalette

public interface HasDataChangedHandlers extends HasHandlers
  • Method Details

    • addDataChangedHandler

      HandlerRegistration addDataChangedHandler(DataChangedHandler handler)
      Notification method fired when the TreeGrid's data changes, for any reason.

      Examples of why data changed might be:

      Calling 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 for ResultTree 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, an addData(), updateData(), or removeData(), or a DataSource update for ResultTree data (the first three reasons listed above) but otherwise will be null.

      Parameters:
      handler - the dataChanged handler
      Returns:
      HandlerRegistration used to remove this handler