Observable

util.Observable
class Observable

An observable can be observed by observers by notifying them upon changes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def add(observer: Observer): Unit

Adds an observer.

Adds an observer.

Value parameters

observer

the observer to add

Attributes

def notifySubscribers(): Unit

Notifies all added observers.

Notifies all added observers.

Attributes

def remove(observer: Observer): Unit

Removes an observer.

Removes an observer.

Value parameters

observer

the observer to remove

Attributes