1 package eu
.etaxonomy
.cdm
.io
.common
;
5 import eu
.etaxonomy
.cdm
.io
.common
.events
.IIoObserver
;
7 public interface IIoObservable
{
10 * Sets the observers for this object
13 public abstract Set
<IIoObserver
> getObservers();
16 * Adds a new observer for this object.
20 public abstract boolean addObserver(IIoObserver observer
);
23 * Adds a set of new observer for this object.
27 public abstract void addObservers(Set
<IIoObserver
> observer
);
31 * Removes an observer from this object
35 public abstract boolean removeObserver(IIoObserver observer
);
38 * Clears the observer list so that this object no longer has any observers.
40 public void removeObservers();
44 * Returns the number of observers of this Observable object.
45 * @return number of observers
47 public int countObservers();