org.eclipse.core.databinding.observable
Class DecoratingObservableCollection
java.lang.Object
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.DecoratingObservable
org.eclipse.core.databinding.observable.DecoratingObservableCollection
- All Implemented Interfaces:
- java.lang.Iterable, java.util.Collection, IDecoratingObservable, IObservable, IObservableCollection
- Direct Known Subclasses:
- DecoratingObservableList, DecoratingObservableSet
public class DecoratingObservableCollection
- extends DecoratingObservable
- implements IObservableCollection
An observable collection which decorates another observable collection
- Since:
- 1.2
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
DecoratingObservableCollection
public DecoratingObservableCollection(IObservableCollection decorated,
boolean disposeDecoratedOnDispose)
- Parameters:
decorated - disposeDecoratedOnDispose -
add
public boolean add(java.lang.Object o)
- Specified by:
add in interface java.util.Collection
addAll
public boolean addAll(java.util.Collection c)
- Specified by:
addAll in interface java.util.Collection
clear
public void clear()
- Specified by:
clear in interface java.util.Collection
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains in interface java.util.Collection
containsAll
public boolean containsAll(java.util.Collection c)
- Specified by:
containsAll in interface java.util.Collection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection
iterator
public java.util.Iterator iterator()
- Specified by:
iterator in interface java.lang.Iterable- Specified by:
iterator in interface java.util.Collection
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection
removeAll
public boolean removeAll(java.util.Collection c)
- Specified by:
removeAll in interface java.util.Collection
retainAll
public boolean retainAll(java.util.Collection c)
- Specified by:
retainAll in interface java.util.Collection
size
public int size()
- Specified by:
size in interface java.util.Collection
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.Collection
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArray in interface java.util.Collection
getElementType
public java.lang.Object getElementType()
- Description copied from interface:
IObservableCollection
- Returns the element type of this observable collection, or
null if this observable collection is untyped.
- Specified by:
getElementType in interface IObservableCollection
- Returns:
- the element type of this observable collection, or
null if this observable collection is untyped.
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals in interface java.util.Collection- Overrides:
equals in class DecoratingObservable
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.util.Collection- Overrides:
hashCode in class DecoratingObservable
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
dispose
public void dispose()
- Description copied from interface:
IObservable
- Disposes of this observable object, removing all listeners registered
with this object, and all listeners this object might have registered on
other objects.
- Specified by:
dispose in interface IObservable- Overrides:
dispose in class DecoratingObservable
addListener
protected void addListener(java.lang.Object listenerType,
IObservablesListener listener)
- Parameters:
listenerType - listener -
removeListener
protected void removeListener(java.lang.Object listenerType,
IObservablesListener listener)
- Parameters:
listenerType - listener -
hasListeners
protected boolean hasListeners()
fireEvent
protected void fireEvent(ObservableEvent event)
getRealm
public Realm getRealm()
- Returns:
- Returns the realm.
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.