|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.set.ObservableSet
org.eclipse.core.databinding.observable.set.WritableSet
public class 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 empty instance in the default realm with a null element type. |
|
WritableSet(java.util.Collection c,
java.lang.Object elementType)
Constructs a new instance in the default realm containing the elements of the given collection. |
|
WritableSet(Realm realm)
Constructs a new empty instance in the given realm and a null element type. |
|
WritableSet(Realm realm,
java.util.Collection c,
java.lang.Object elementType)
Constructs a new instance in the default realm with the given element type, containing the elements of the given collection. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
protected void |
addListener(java.lang.Object listenerType,
IObservablesListener listener)
|
void |
clear()
|
protected java.lang.Object |
clone()
|
protected void |
fireEvent(ObservableEvent event)
|
protected void |
firstListenerAdded()
|
Realm |
getRealm()
|
protected boolean |
hasListeners()
|
protected void |
lastListenerRemoved()
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
protected void |
removeListener(java.lang.Object listenerType,
IObservablesListener listener)
|
boolean |
retainAll(java.util.Collection c)
|
static WritableSet |
withElementType(java.lang.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, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
|---|
addChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
| Constructor Detail |
|---|
public WritableSet()
null element type.
public WritableSet(java.util.Collection c,
java.lang.Object elementType)
c - elementType - can be nullpublic WritableSet(Realm realm)
null element type.
realm -
public WritableSet(Realm realm,
java.util.Collection c,
java.lang.Object elementType)
realm - c - elementType - can be null| Method Detail |
|---|
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setadd in interface IObservableSetadd in class ObservableSetpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.SetaddAll in interface IObservableSetaddAll in class ObservableSetpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Setremove in interface IObservableSetremove in class ObservableSetpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.SetremoveAll in interface IObservableSetremoveAll in class ObservableSetpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.SetretainAll in interface IObservableSetretainAll in class ObservableSetpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setclear in class ObservableSetpublic static WritableSet withElementType(java.lang.Object elementType)
elementType - can be null
protected void addListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener -
protected void removeListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
protected void firstListenerAdded()
protected void lastListenerRemoved()
public Realm getRealm()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.