|
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
org.eclipse.jface.viewers.deferred.SetModel
public class SetModel
Trivial implementation of an IConcurrentModel. Implements
an unordered set of elements that fires off change notifications whenever
elements are added or removed from the set. All notifications are sent
synchronously.
| Constructor Summary | |
|---|---|
SetModel()
|
|
| Method Summary | |
|---|---|
void |
addAll(Collection toAdd)
Adds the given elements to the set. |
void |
addAll(Object[] toAdd)
Adds the given elements to the set |
void |
changeAll(Object[] changed)
Fires a change notification for all elements in the given array |
void |
clear()
Empties the set |
Object[] |
getElements()
Return the contents of the model. |
void |
removeAll(Object[] toRemove)
Removes all of the given elements from the set. |
void |
requestUpdate(IConcurrentModelListener listener)
Requests that the receiver to call the given listener's setContents(...) |
void |
set(Object[] newContents)
Sets the contents to the given array of elements |
| Methods inherited from class org.eclipse.jface.viewers.deferred.AbstractConcurrentModel |
|---|
addListener, fireAdd, fireRemove, fireUpdate, getListeners, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetModel()
| Method Detail |
|---|
public Object[] getElements()
public void set(Object[] newContents)
newContents - new contents of this setpublic void clear()
public void addAll(Object[] toAdd)
toAdd - elements to addpublic void addAll(Collection toAdd)
toAdd - elements to addpublic void changeAll(Object[] changed)
changed - array of elements that have changedpublic void removeAll(Object[] toRemove)
toRemove - elements to removepublic void requestUpdate(IConcurrentModelListener listener)
IConcurrentModelHas 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.
|
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.