|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.databinding.observable.ChangeManager
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.set.ObservableSet
org.eclipse.core.databinding.observable.set.WritableSet
Mutable (writable) implementation of IObservableSet.
This class is thread safe. All state accessing methods must be invoked from
the current realm. Methods for adding and removing
listeners may be invoked from any thread.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.core.databinding.observable.set.ObservableSet |
|---|
elementType, wrappedSet |
| Constructor Summary | |
|---|---|
WritableSet()
Constructs a new instance with the default realm, empty list, and a null element type. |
|
WritableSet(Collection c,
Object elementType)
Construts a new instance with the default realm. |
|
WritableSet(Realm realm)
Constructs a new instance with an empty list and a null element type. |
|
WritableSet(Realm realm,
Collection c,
Object elementType)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
clear()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
static WritableSet |
withElementType(Object elementType)
|
| Methods inherited from class org.eclipse.core.databinding.observable.set.ObservableSet |
|---|
addSetChangeListener, contains, containsAll, dispose, equals, fireChange, fireSetChange, getElementType, getterCalled, hashCode, isEmpty, isStale, iterator, removeSetChangeListener, setStale, setWrappedSet, size, toArray, toArray, toString |
| Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
|---|
addChangeListener, addListener, addStaleListener, checkRealm, fireEvent, fireStale, firstListenerAdded, getRealm, hasListeners, lastListenerRemoved, removeChangeListener, removeListener, removeStaleListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
|---|
addChangeListener, addStaleListener, getRealm, removeChangeListener, removeStaleListener |
| Constructor Detail |
public WritableSet()
null element type.
public WritableSet(Collection c,
Object elementType)
c - elementType - can be nullpublic WritableSet(Realm realm)
null element type.
realm -
public WritableSet(Realm realm,
Collection c,
Object elementType)
realm - c - elementType - can be null| Method Detail |
public boolean add(Object o)
add in interface IObservableSetadd in class ObservableSetpublic boolean addAll(Collection c)
addAll in interface IObservableSetaddAll in class ObservableSetpublic boolean remove(Object o)
remove in interface IObservableSetremove in class ObservableSetpublic boolean removeAll(Collection c)
removeAll in interface IObservableSetremoveAll in class ObservableSetpublic boolean retainAll(Collection c)
retainAll in interface IObservableSetretainAll in class ObservableSetpublic void clear()
clear in interface Setclear in class ObservableSetpublic static WritableSet withElementType(Object elementType)
elementType - can be null
|
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.