public abstract class AbstractConcurrentModel extends Object implements IConcurrentModel
| Constructor and Description |
|---|
AbstractConcurrentModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IConcurrentModelListener listener)
Adds a listener to this model.
|
protected void |
fireAdd(Object[] added)
Fires an add notification to all listeners
|
protected void |
fireRemove(Object[] removed)
Fires a remove notification to all listeners
|
protected void |
fireUpdate(Object[] updated)
Fires an update notification to all listeners
|
protected IConcurrentModelListener[] |
getListeners()
Returns the array of listeners for this model
|
void |
removeListener(IConcurrentModelListener listener)
Removes a listener from this model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequestUpdatepublic void addListener(IConcurrentModelListener listener)
IConcurrentModelHas no effect if an identical listener is already registered.
addListener in interface IConcurrentModellistener - listener to addprotected final void fireAdd(Object[] added)
added - objects added to the setprotected final void fireRemove(Object[] removed)
removed - objects removed from the setprotected final void fireUpdate(Object[] updated)
updated - objects that have changedprotected final IConcurrentModelListener[] getListeners()
public void removeListener(IConcurrentModelListener listener)
IConcurrentModelHas no effect if the given listener is not known to this model.
removeListener in interface IConcurrentModellistener - listener to removeGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.