Interface IConcurrentModelListener
public interface IConcurrentModelListener
Interface for objects that can listen to changes in an IConcurrentModel.
Elements in an IConcurrentModel are unordered.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when elements are added to the modelvoid
Called when elements are removed from the modelvoid
setContents
(Object[] newContents) Notifies the receiver about the complete set of elements in the model.void
Called when elements in the model have changed
-
Method Details
-
add
Called when elements are added to the model- Parameters:
added
- elements added to the model
-
remove
Called when elements are removed from the model- Parameters:
removed
- elements removed from the model
-
update
Called when elements in the model have changed- Parameters:
changed
- elements that have changed
-
setContents
Notifies the receiver about the complete set of elements in the model. Most models will not call this method unless the listener explicitly requests it by callingIConcurrentModel.requestUpdate
- Parameters:
newContents
- contents of the model
-