|
Eclipse Platform Release 3.7 |
|||||||||
| 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 Object |
elementType
|
protected Set |
wrappedSet
|
| Constructor Summary | |
|---|---|
protected |
ObservableSet(Realm realm,
Set wrappedSet,
Object elementType)
|
protected |
ObservableSet(Set wrappedSet,
Object elementType)
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
protected void |
addListener(Object listenerType,
IObservablesListener listener)
|
void |
addSetChangeListener(ISetChangeListener listener)
|
void |
clear()
|
protected Object |
clone()
|
boolean |
contains(Object o)
|
boolean |
containsAll(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(Object o)
|
protected void |
fireChange()
|
protected void |
fireEvent(ObservableEvent event)
|
protected void |
fireSetChange(SetDiff diff)
|
protected void |
firstListenerAdded()
|
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. |
Iterator |
iterator()
|
protected void |
lastListenerRemoved()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
protected void |
removeListener(Object listenerType,
IObservablesListener listener)
|
void |
removeSetChangeListener(ISetChangeListener listener)
|
boolean |
retainAll(Collection c)
|
void |
setStale(boolean stale)
|
protected void |
setWrappedSet(Set wrappedSet)
|
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
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 Set wrappedSet
protected Object elementType
| Constructor Detail |
|---|
protected ObservableSet(Set wrappedSet,
Object elementType)
protected ObservableSet(Realm realm,
Set wrappedSet,
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(Object o)
contains in interface Collectioncontains in interface Setcontains in interface IObservableSetpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface SetcontainsAll in interface IObservableSetpublic boolean equals(Object o)
equals in interface Collectionequals in interface Setequals in interface IObservableSetequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in interface SethashCode in interface IObservableSethashCode in class Objectpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in interface IObservableSetpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in interface IObservableSetpublic int size()
size in interface Collectionsize in interface Setsize in interface IObservableSetpublic Object[] toArray()
toArray in interface CollectiontoArray in interface SettoArray in interface IObservableSetpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface SettoArray in interface IObservableSetpublic String toString()
toString in class Objectprotected void getterCalled()
public boolean add(Object o)
add in interface Collectionadd in interface Setadd in interface IObservableSetpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface SetaddAll in interface IObservableSetpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in interface IObservableSetpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface SetremoveAll in interface IObservableSetpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface SetretainAll in interface IObservableSetpublic void clear()
clear in interface Collectionclear in interface 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(Set wrappedSet)
wrappedSet - The wrappedSet to set.protected void fireChange()
fireChange in class AbstractObservablepublic void dispose()
IObservable
dispose in interface IObservabledispose in class AbstractObservablepublic 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(Object listenerType,
IObservablesListener listener)
listenerType - listener -
protected void removeListener(Object listenerType,
IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
protected void firstListenerAdded()
protected void lastListenerRemoved()
public Realm getRealm()
protected Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
Eclipse Platform Release 3.7 |
|||||||||
| 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, 2011. All rights reserved.