|
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.AbstractObservableSet
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.
Constructor Summary | |
---|---|
protected |
AbstractObservableSet()
|
protected |
AbstractObservableSet(Realm realm)
|
Method Summary | |
---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
addSetChangeListener(ISetChangeListener listener)
|
void |
clear()
|
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 |
fireSetChange(SetDiff diff)
|
protected void |
firstListenerAdded()
|
protected void |
getterCalled()
|
protected abstract Set |
getWrappedSet()
|
int |
hashCode()
|
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)
|
void |
removeSetChangeListener(ISetChangeListener listener)
|
boolean |
retainAll(Collection c)
|
void |
setStale(boolean stale)
|
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toString()
|
Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
---|
addChangeListener, addListener, addStaleListener, checkRealm, fireEvent, fireStale, getRealm, hasListeners, 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.set.IObservableSet |
---|
getElementType |
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
---|
addChangeListener, addStaleListener, getRealm, removeChangeListener, removeStaleListener |
Constructor Detail |
protected AbstractObservableSet()
protected AbstractObservableSet(Realm realm)
Method Detail |
protected void firstListenerAdded()
protected void lastListenerRemoved()
public void addSetChangeListener(ISetChangeListener listener)
addSetChangeListener
in interface IObservableSet
listener
- public void removeSetChangeListener(ISetChangeListener listener)
removeSetChangeListener
in interface IObservableSet
listener
- protected abstract Set getWrappedSet()
protected void fireSetChange(SetDiff diff)
public boolean contains(Object o)
contains
in interface IObservableSet
public boolean containsAll(Collection c)
containsAll
in interface IObservableSet
public boolean equals(Object o)
equals
in interface IObservableSet
public int hashCode()
hashCode
in interface IObservableSet
public boolean isEmpty()
isEmpty
in interface IObservableSet
public Iterator iterator()
iterator
in interface IObservableSet
public int size()
size
in interface IObservableSet
public Object[] toArray()
toArray
in interface IObservableSet
public Object[] toArray(Object[] a)
toArray
in interface IObservableSet
public String toString()
protected void getterCalled()
public boolean add(Object o)
add
in interface IObservableSet
public boolean addAll(Collection c)
addAll
in interface IObservableSet
public boolean remove(Object o)
remove
in interface IObservableSet
public boolean removeAll(Collection c)
removeAll
in interface IObservableSet
public boolean retainAll(Collection c)
retainAll
in interface IObservableSet
public void clear()
clear
in interface Set
public boolean isStale()
IObservable
isStale
in interface IObservable
public 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 fireChange()
fireChange
in class AbstractObservable
public void dispose()
IObservable
dispose
in interface IObservable
dispose
in class AbstractObservable
|
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.