|
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
public abstract class ObservableSet
Abstract 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 | |
|---|---|
protected java.lang.Object |
elementType
|
protected java.util.Set |
wrappedSet
|
| Constructor Summary | |
|---|---|
protected |
ObservableSet(Realm realm,
java.util.Set wrappedSet,
java.lang.Object elementType)
|
protected |
ObservableSet(java.util.Set wrappedSet,
java.lang.Object elementType)
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
protected void |
addListener(java.lang.Object listenerType,
IObservablesListener listener)
|
void |
addSetChangeListener(ISetChangeListener listener)
|
void |
clear()
|
protected java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
void |
dispose()
Disposes of this observable object, removing all listeners registered with this object, and all listeners this object might have registered on other objects. |
boolean |
equals(java.lang.Object o)
|
protected void |
fireChange()
|
protected void |
fireEvent(ObservableEvent event)
|
protected void |
fireSetChange(SetDiff diff)
|
protected void |
firstListenerAdded()
|
java.lang.Object |
getElementType()
Returns the element type of this observable collection, or null if this observable collection is untyped. |
Realm |
getRealm()
|
protected void |
getterCalled()
|
int |
hashCode()
|
protected boolean |
hasListeners()
|
boolean |
isEmpty()
|
boolean |
isStale()
Returns whether the state of this observable is stale and is expected to change soon. |
java.util.Iterator |
iterator()
|
protected void |
lastListenerRemoved()
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
protected void |
removeListener(java.lang.Object listenerType,
IObservablesListener listener)
|
void |
removeSetChangeListener(ISetChangeListener listener)
|
boolean |
retainAll(java.util.Collection c)
|
void |
setStale(boolean stale)
|
protected void |
setWrappedSet(java.util.Set wrappedSet)
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
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 |
| Field Detail |
|---|
protected java.util.Set wrappedSet
protected java.lang.Object elementType
| Constructor Detail |
|---|
protected ObservableSet(java.util.Set wrappedSet,
java.lang.Object elementType)
protected ObservableSet(Realm realm,
java.util.Set wrappedSet,
java.lang.Object elementType)
| Method Detail |
|---|
public void addSetChangeListener(ISetChangeListener listener)
addSetChangeListener in interface IObservableSetpublic void removeSetChangeListener(ISetChangeListener listener)
removeSetChangeListener in interface IObservableSetprotected void fireSetChange(SetDiff diff)
public boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Setcontains in interface IObservableSetpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.SetcontainsAll in interface IObservableSetpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Setequals in interface IObservableSetequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in interface IObservableSethashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.SetisEmpty in interface IObservableSetpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setiterator in interface IObservableSetpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setsize in interface IObservableSetpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.SettoArray in interface IObservableSetpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.SettoArray in interface IObservableSetpublic java.lang.String toString()
toString in class java.lang.Objectprotected void getterCalled()
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setadd in interface IObservableSetpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.SetaddAll in interface IObservableSetpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Setremove in interface IObservableSetpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.SetremoveAll in interface IObservableSetpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.SetretainAll in interface IObservableSetpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setpublic boolean isStale()
IObservable
isStale in interface IObservablepublic void setStale(boolean stale)
stale - The stale state to set. This will fire a stale event if the
given boolean is true and this observable set was not already
stale.protected void setWrappedSet(java.util.Set wrappedSet)
wrappedSet - The wrappedSet to set.protected void fireChange()
fireChange in class AbstractObservablepublic void dispose()
IObservable
dispose in interface IObservabledispose in class AbstractObservablepublic java.lang.Object getElementType()
IObservableCollectionnull if this observable collection is untyped.
getElementType in interface IObservableCollectiongetElementType in interface IObservableSetnull if this observable collection is untyped.
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.