Observable
The Java observer/observable pattern has a number of flaws. This class provides a base implementation of the observer/observable pattern that mitigates those flaws. This allows observers to be added and called in the order added to the component. The basic usage of this class is to have a class have an instance of Observable while implementing the ObservableIfc. The notifyObservers() method can be used to notify attached observers whenever necessary.
Author
rossetti
Inheritors
Functions
Allows the adding (attaching) of an observer to the observable
Returns how many observers are currently attached to the observable
Detaches all the observers from the observable
Allows the deletion (removing) of an observer from the observable
Returns true if the observer is already attached