Eclipse Platform
Release 3.3

org.eclipse.jface.viewers.deferred
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
 void add(Object[] added)
          Called when elements are added to the model
 void remove(Object[] removed)
          Called when elements are removed from the model
 void setContents(Object[] newContents)
          Notifies the receiver about the complete set of elements in the model.
 void update(Object[] changed)
          Called when elements in the model have changed
 

Method Detail

add

public void add(Object[] added)
Called when elements are added to the model

Parameters:
added - elements added to the model

remove

public void remove(Object[] removed)
Called when elements are removed from the model

Parameters:
removed - elements removed from the model

update

public void update(Object[] changed)
Called when elements in the model have changed

Parameters:
changed - elements that have changed

setContents

public void setContents(Object[] newContents)
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 calling IConcurrentModel.requestUpdate

Parameters:
newContents - contents of the model

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.