|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.deferred.AbstractConcurrentModel
public abstract class AbstractConcurrentModel
Abstract base class for all IConcurrentModel implementations. Clients should subclass this class instead of implementing IConcurrentModel directly.
Constructor Summary | |
---|---|
AbstractConcurrentModel()
|
Method Summary | |
---|---|
void |
addListener(IConcurrentModelListener listener)
Adds a listener to this model. |
protected void |
fireAdd(java.lang.Object[] added)
Fires an add notification to all listeners |
protected void |
fireRemove(java.lang.Object[] removed)
Fires a remove notification to all listeners |
protected void |
fireUpdate(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.viewers.deferred.IConcurrentModel |
---|
requestUpdate |
Constructor Detail |
---|
public AbstractConcurrentModel()
Method Detail |
---|
public void addListener(IConcurrentModelListener listener)
IConcurrentModel
Has no effect if an identical listener is already registered.
addListener
in interface IConcurrentModel
listener
- listener to addprotected final void fireAdd(java.lang.Object[] added)
added
- objects added to the setprotected final void fireRemove(java.lang.Object[] removed)
removed
- objects removed from the setprotected final void fireUpdate(java.lang.Object[] updated)
updated
- objects that have changedprotected final IConcurrentModelListener[] getListeners()
public void removeListener(IConcurrentModelListener listener)
IConcurrentModel
Has no effect if the given listener is not known to this model.
removeListener
in interface IConcurrentModel
listener
- listener to remove
|
Eclipse Platform Release 3.2 |
|||||||||
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, 2006. All rights reserved.