addSelectionChangedListener method

void addSelectionChangedListener(
  1. SelectionModelListener<D> listener
)

Add a listener to be notified when this SelectionModel changes.

Note: the listener will not be triggered if updateSelection is called resulting in the same selection state.

Implementation

void addSelectionChangedListener(SelectionModelListener<D> listener) {
  _changedListeners.add(listener);
}