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:
-
Iterable,
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
DecoratingObservableCollection
public DecoratingObservableCollection(
IObservableCollection decorated,
boolean disposeDecoratedOnDispose)
-
Parameters:
-
decorated
- -
disposeDecoratedOnDispose
-
add
public boolean add(
Object o)
-
-
Specified by:
-
add
in interface
Collection
-
addAll
public boolean addAll(
Collection c)
-
-
Specified by:
-
addAll
in interface
Collection
-
clear
public void clear()
-
-
Specified by:
-
clear
in interface
Collection
-
contains
public boolean contains(
Object o)
-
-
Specified by:
-
contains
in interface
Collection
-
containsAll
public boolean containsAll(
Collection c)
-
-
Specified by:
-
containsAll
in interface
Collection
-
isEmpty
public boolean isEmpty()
-
-
Specified by:
-
isEmpty
in interface
Collection
-
iterator
public
Iterator iterator()
-
-
Specified by:
-
iterator
in interface
Iterable
-
Specified by:
-
iterator
in interface
Collection
-
remove
public boolean remove(
Object o)
-
-
Specified by:
-
remove
in interface
Collection
-
removeAll
public boolean removeAll(
Collection c)
-
-
Specified by:
-
removeAll
in interface
Collection
-
retainAll
public boolean retainAll(
Collection c)
-
-
Specified by:
-
retainAll
in interface
Collection
-
size
public int size()
-
-
Specified by:
-
size
in interface
Collection
-
toArray
public
Object[] toArray()
-
-
Specified by:
-
toArray
in interface
Collection
-
toArray
public
Object[] toArray(
Object[] a)
-
-
Specified by:
-
toArray
in interface
Collection
-
getElementType
public
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(
Object o)
-
-
Specified by:
-
equals
in interface
Collection
-
Overrides:
-
equals
in class
DecoratingObservable
-
hashCode
public int hashCode()
-
-
Specified by:
-
hashCode
in interface
Collection
-
Overrides:
-
hashCode
in class
DecoratingObservable
-
toString
public
String toString()
-
-
Overrides:
-
toString
in class
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(
Object listenerType,
IObservablesListener listener)
-
-
Parameters:
-
listenerType
- -
listener
-
removeListener
protected void removeListener(
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
Object clone()
throws
CloneNotSupportedException
-
-
Overrides:
-
clone
in class
Object
-
-
Throws:
-
CloneNotSupportedException
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.