Options
All
  • Public
  • Public/Protected
  • All
Menu

Object that gets notified when a given observable changes

Hierarchy

Implemented by

Index

Constructors

constructor

  • Returns Observer

Properties

_isDisposed

_isDisposed: boolean = false

_observables

_observables: Set<Observable>

Accessors

isDisposed

  • get isDisposed(): boolean
  • Returns boolean

Methods

deepUpdate

  • deepUpdate(): void
  • This method allows to explicitly update the instance itself and nested observers. If notifications are disabled a call to this method ensures an update of such nested observers. It should be implemented in derived classes whenever applicable

    Returns void

dispose

  • dispose(): void
  • Returns void

registerWith

  • Parameters

    Returns void

registerWithObservables

  • registerWithObservables(o: Observer): void
  • register with all observables of a given observer. Note that this does not include registering with the observer itself.

    Parameters

    Returns void

unregisterWith

  • Parameters

    Returns Size

unregisterWithAll

  • unregisterWithAll(): void
  • Returns void

update

  • update(): void
  • This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.

    Returns void