Trait

reactify

StateChannel

Related Doc: package reactify

Permalink

trait StateChannel[T] extends State[T] with Channel[T]

Linear Supertypes
Channel[T], State[T], Observable[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StateChannel
  2. Channel
  3. State
  4. Observable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def distinct: Boolean

    Permalink
    Definition Classes
    State
  2. abstract def observing: Set[Observable[_]]

    Permalink
    Definition Classes
    State
  3. abstract def set(value: ⇒ T): Unit

    Permalink

    Fires the value to all attached listeners.

    Fires the value to all attached listeners.

    value

    the value to apply

    Definition Classes
    Channel
  4. abstract def value(): T

    Permalink
    Attributes
    protected
    Definition Classes
    State

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def :=(value: ⇒ T): Unit

    Permalink

    Convenience method to send a value to set similarly to an assignment operator.

    Convenience method to send a value to set similarly to an assignment operator.

    value

    the value to apply

    Definition Classes
    Channel
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def and(that: Observable[T]): Observable[T]

    Permalink
    Definition Classes
    Observable
  6. def apply(): T

    Permalink
    Definition Classes
    State
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def attach(f: (T) ⇒ Unit, priority: Double = Listener.Priority.Normal): Listener[T]

    Permalink

    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

    Definition Classes
    Observable
  9. def attachAndFire(f: (T) ⇒ Unit): Listener[T]

    Permalink
    Definition Classes
    State
  10. def bind[V](that: StateChannel[V], setNow: BindSet = BindSet.LeftToRight)(implicit t2v: (T) ⇒ V, v2t: (V) ⇒ T): Binding[T, V]

    Permalink
  11. def changed(value: T, previous: T, type: InvocationType): Unit

    Permalink
    Attributes
    protected[reactify]
    Definition Classes
    State
  12. def changes(listener: ChangeListener[T]): Listener[T]

    Permalink

    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

    Definition Classes
    StateObservable
  13. def clear(): Unit

    Permalink

    Clears all attached observers from this Observable.

    Clears all attached observers from this Observable.

    Definition Classes
    Observable
  14. def clone(): AnyRef

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

    Permalink

    Detaches a function from listening to this Observable.

    Detaches a function from listening to this Observable.

    listener

    function listener that was previously attached

    Definition Classes
    Observable
  16. def dispose(): Unit

    Permalink

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

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

    Definition Classes
    Observable
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fire(value: T, type: InvocationType): Unit

    Permalink
    Attributes
    protected[reactify]
    Definition Classes
    Observable
  21. final def fireRecursive(value: T, type: InvocationType, invocation: Invocation, observers: List[Listener[T]]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Observable
  22. def future(condition: (T) ⇒ Boolean = (t: T) => true): Future[T]

    Permalink

    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.

    Definition Classes
    Observable
  23. final def get: T

    Permalink
    Definition Classes
    State
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def observe(listener: Listener[T]): Listener[T]

    Permalink

    Direct attachment of a listener.

    Direct attachment of a listener.

    listener

    the listener to attach

    returns

    the same listener supplied

    Definition Classes
    Observable
  31. def on(f: ⇒ Unit, priority: Double = Listener.Priority.Normal): Listener[T]

    Permalink

    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

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

    Permalink

    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.

    Definition Classes
    Observable
  33. def static(value: T): Unit

    Permalink
    Definition Classes
    StateChannelState
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Channel[T]

Inherited from State[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped