|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a set of unordered elements that can fire change notifications. IConcurrentModel returns its contents asynchronous. Rather than implementing "get" methods, listeners can request an update and the model fires back information at its earliest convenience.
The model is allowed to send back notifications to its listeners in any thread, and the listeners must not assume that the notifications will arrive in the UI thread.
Not intended to be implemented by clients. Clients should subclass
AbstractConcurrentModel
instead.
Method Summary | |
---|---|
void |
addListener(IConcurrentModelListener listener)
Adds a listener to this model. |
void |
removeListener(IConcurrentModelListener listener)
Removes a listener from this model. |
void |
requestUpdate(IConcurrentModelListener listener)
Requests that the receiver to call the given listener's setContents(...) |
Method Detail |
public void requestUpdate(IConcurrentModelListener listener)
Has no effect if an update is already queued for an identical listener.
listener
- listener whose setContents method should be called. The
listener must have been previously registered with addListener.public void addListener(IConcurrentModelListener listener)
Has no effect if an identical listener is already registered.
listener
- listener to addpublic void removeListener(IConcurrentModelListener listener)
Has no effect if the given listener is not known to this model.
listener
- listener to remove
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.