trait Observable[T] extends AnyRef

Observable, as the name suggests, observes values being fired against it. This is the core functionality of Reactify and provides the infrastructure used by Channel, Val, Var, Prop, and Dep.

T

the type of value this Observable will receive

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def and(that: Observable[T]): Observable[T]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def attach(f: (T) ⇒ Unit, priority: Double = Listener.Priority.Normal): Listener[T]

    Attaches a function to listen to values fired against this Observable.

    Attaches a function to listen to values fired against this Observable.

    f

    function listener

    returns

    the supplied function. This reference is useful for detaching the function later

  7. def changes(listener: ChangeListener[T]): Listener[T]

    Works similarly to attach, but also references the previous value that was fired.

    Works similarly to attach, but also references the previous value that was fired. This is useful when you need to handle changes, not just new values.

    listener

    the ChangeListener

    returns

    the listener attached. This can be passed to detach to remove this listener

  8. def clear(): Unit

    Clears all attached observers from this Observable.

  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def detach(listener: Listener[T]): Unit

    Detaches a function from listening to this Observable.

    Detaches a function from listening to this Observable.

    listener

    function listener that was previously attached

  11. def dispose(): Unit

    Cleans up all cross references in preparation for releasing for GC.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fire(value: T, type: InvocationType): Unit
    Attributes
    protected[reactify]
  16. final def fireRecursive(value: T, type: InvocationType, invocation: Invocation, observers: List[Listener[T]]): Unit
    Attributes
    protected
  17. def future(condition: (T) ⇒ Boolean = (t: T) => true): Future[T]

    Returns a Future[T] that represents the value of the next firing of this Observable.

    Returns a Future[T] that represents the value of the next firing of this Observable.

    condition

    the condition under which the listener will be invoked. Defaults to always return true.

  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. def observe(listener: Listener[T]): Listener[T]

    Direct attachment of a listener.

    Direct attachment of a listener.

    listener

    the listener to attach

    returns

    the same listener supplied

  25. def on(f: ⇒ Unit, priority: Double = Listener.Priority.Normal): Listener[T]

    Works like attach, but doesn't receive the fired value.

    Works like attach, but doesn't receive the fired value.

    f

    function to invoke on fire

    returns

    listener

  26. def once(f: (T) ⇒ Unit, condition: (T) ⇒ Boolean = (_: T) => true, priority: Double = Listener.Priority.Normal): Listener[T]

    Invokes the listener only one time and then detaches itself.

    Invokes the listener only one time and then detaches itself. If supplied, the condition filters the scenarios in which the listener will be invoked.

    f

    the function listener

    condition

    the condition under which the listener will be invoked. Defaults to always return true.

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped