VarGroup

reactify.group.VarGroup
case class VarGroup[T](items: List[Var[T]]) extends Var[T], Group[T, Var[T]]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Group[T, Var[T]]
class Var[T]
trait Mutable[T]
class Val[T]
trait Stateful[T]
trait Reactive[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def and(that: Var[T]): Var[T]

Group multiple Vars together

Group multiple Vars together

Attributes

Definition Classes
Var
override def get: T

Gets the current value from the current State

Gets the current value from the current State

Attributes

Definition Classes
override def set(value: => T): Unit

Sets a new functional value to this var

Sets a new functional value to this var

Value parameters

value

the functional value to assign

Attributes

Definition Classes
Var -> Mutable -> Val

Inherited methods

def !(future: Future[T])(implicit ec: ExecutionContext): Future[Unit]

Convenience functionality to assign the result of a future (upon completion) to this Channel

Convenience functionality to assign the result of a future (upon completion) to this Channel

Attributes

Inherited from:
Mutable
def &(that: Var[T]): Var[T]

Group multiple Vars together

Group multiple Vars together

Attributes

Inherited from:
Var
def &(that: Val[T]): Val[T]

Group multiple Vals together

Group multiple Vals together

Attributes

Inherited from:
Val
def &(that: Stateful[T]): Stateful[T]

Group multiple Statefuls together

Group multiple Statefuls together

Attributes

Inherited from:
Stateful
def :=(f: => T): Unit

Convenience alternative to "set"

Convenience alternative to "set"

Attributes

Inherited from:
Mutable
def @=(f: T): Unit

Convenience alternative to "static"

Convenience alternative to "static"

Attributes

Inherited from:
Mutable
def and(that: Val[T]): Val[T]

Group multiple Vals together

Group multiple Vals together

Attributes

Inherited from:
Val
def and(that: Stateful[T]): Stateful[T]

Group multiple Statefuls together

Group multiple Statefuls together

Attributes

Inherited from:
Stateful
def apply(): T

Convenience wrapper around get

Convenience wrapper around get

Attributes

Inherited from:
Stateful
def attach(f: T => Unit, priority: Double): Reaction[T]

Convenience method to create a Reaction to attach to this Reactive

Convenience method to create a Reaction to attach to this Reactive

Value parameters

f

the function reaction

priority

the priority in comparison to other reactions (Defaults to Priority.Normal)

Attributes

Returns

created Reaction[T]

Inherited from:
Reactive
def attachAndFire(f: T => Unit, priority: Double): Reaction[T]

Convenience functionality to attach a Reaction and immediately fire the current state on the Reaction.

Convenience functionality to attach a Reaction and immediately fire the current state on the Reaction.

Value parameters

f

the function reaction

priority

the priority in comparison to other reactions (Defaults to Priority.Normal)

Attributes

Returns

Reaction[T]

Inherited from:
Stateful
def bind[V](that: Var[V], setNow: BindSet)(implicit t2v: T => V, v2t: V => T): Binding[T, V]

Convenience method to create a binding between two Vars

Convenience method to create a binding between two Vars

Type parameters

V

the type of the second Var

Value parameters

setNow

the BindSet value (Defaults to LeftToRight)

t2v

implicit function conversion from T to V

that

the second Var to bind between

v2t

implicit function conversion from V to T

Attributes

Returns

Binding[T, V]

Inherited from:
Var
def changes(f: (T, T) => Unit, priority: Double): Reaction[T]

Convenience method to create a Reaction to monitor changes to this Reactive

Convenience method to create a Reaction to monitor changes to this Reactive

Value parameters

f

the function reaction to receive changes

priority

the priority in comparison to other reactions (Defaults to Priority.Normal)

Attributes

Returns

created Reaction[T]

Inherited from:
Reactive
def equality(t1: T, t2: T): Boolean

Attributes

Inherited from:
Val
def future(condition: T => Boolean): Future[T]

Convenience method to create a Future[T] that will complete upon the next reaction that meets to supplied condition.

Convenience method to create a Future[T] that will complete upon the next reaction that meets to supplied condition.

Value parameters

condition

optional condition that must be true for this to fire (Defaults to accept anything)

Attributes

Returns

Future[T]

Inherited from:
Reactive
override def map[R](f: T => R): Var[R]

Maps this Var to another type.

Maps this Var to another type.

Note: this mapping loses all meaning if the new Var gets set explicitly with a new value

Attributes

Definition Classes
Var -> Val
Inherited from:
Var
def on(f: => Unit, priority: Double): Reaction[T]

Convenience method to create a Reaction to monitor changes to this Reactive when you don't care about the actual value.

Convenience method to create a Reaction to monitor changes to this Reactive when you don't care about the actual value.

Value parameters

f

the function reaction to invoke in reaction to a value received

priority

the priority in comparison to other reactions (Defaults to Priority.Normal)

Attributes

Returns

created Reaction[T]

Inherited from:
Reactive
def once(f: T => Unit, condition: T => Boolean, priority: Double): Reaction[T]

Convenience method to create a Reaction to monitor a single reaction based on an optional condition.

Convenience method to create a Reaction to monitor a single reaction based on an optional condition.

Value parameters

condition

optional condition that must be true for this to fire (Defaults to accept anything)

f

the function reaction

priority

the priority in comparison to other reactions (Defaults to Priority.Normal)

Attributes

Returns

created Reaction[T]

Inherited from:
Reactive
def option: Option[T]

Attributes

Inherited from:
Val
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def references: Set[Val[_]]

Attributes

Inherited from:
Val
override def static(value: T): Unit

Statically sets a value without monitoring effects

Statically sets a value without monitoring effects

Value parameters

value

the value to assign

Attributes

Definition Classes
Var -> Mutable -> Val
Inherited from:
Var
def status: Option[ReactionStatus]

If the current thread is reacting to a value currently, status represents the status of the reaction. This can be set to ReactionStatus.Stop in order to stop propagation. This can also be achieved via stopPropagation().

If the current thread is reacting to a value currently, status represents the status of the reaction. This can be set to ReactionStatus.Stop in order to stop propagation. This can also be achieved via stopPropagation().

Attributes

Inherited from:
Reactive
def status_=(status: ReactionStatus): Unit

Attributes

Inherited from:
Reactive
def stopPropagation(): Unit

Shortcut functionality to call status = ReactionStatus.Stop

Shortcut functionality to call status = ReactionStatus.Stop

Attributes

Inherited from:
Reactive
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Val -> Any
Inherited from:
Val
def toTry: Try[T]

Attributes

Inherited from:
Val
def update(f: => T): Unit

Convenience alternative to "set"

Convenience alternative to "set"

Attributes

Inherited from:
Mutable

Concrete fields

lazy override val reactions: Reactions[T]

Reactions currently associated with this Reactive

Reactions currently associated with this Reactive

Attributes