Class/Object

com.thoughtworks.binding.Binding

Var

Related Docs: object Var | package Binding

Permalink

final class Var[A] extends Binding[A]

Source variable of data binding expression.

You can manually change the value:

val bindingVar = Var("initial value")
bindingVar := "changed value"

Then, any data binding expressions that depend on this Var will be changed automatically.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Var
  2. Binding
  3. AnyRef
  4. Any
Implicitly
  1. by eachOps
  2. by eachOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Var(value: A)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to any2stringadd[Var[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Var[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to ArrowAssoc[Var[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def :=(newValue: A): Unit

    Permalink
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (Var[A]) ⇒ Boolean, msg: ⇒ Any): Var[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to Ensuring[Var[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (Var[A]) ⇒ Boolean): Var[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to Ensuring[Var[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): Var[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to Ensuring[Var[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): Var[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to Ensuring[Var[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to StringFormat[Var[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. def get: A

    Permalink
    Definition Classes
    VarBinding
  18. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def unwatch(): Unit

    Permalink

    Disable automatically re-calculation.

    Disable automatically re-calculation.

    Definition Classes
    Binding
    Annotations
    @inline()
    Note

    This method is recursive, which means that the dependencies of this Binding will be unwatched as well.

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def watch(): Unit

    Permalink

    Enable automatically re-calculation.

    Enable automatically re-calculation.

    You may invoke this method more than once. Then, when you want to disable automatically re-calculation, you must invoke #unwatch same times as the number of calls to this method.

    Definition Classes
    Binding
    Annotations
    @inline()
    Note

    This method is recursive, which means that the dependencies of this Binding will be watched as well.

  31. def [B](y: B): (Var[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to ArrowAssoc[Var[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def each: A

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to EachOps[Binding, A] performed by method eachOps in com.thoughtworks.binding.Binding.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (var: EachOps[Binding, A]).each
    Definition Classes
    EachOps
    Annotations
    @compileTimeOnly( ... )
  2. def each: A

    Permalink
    Implicit information
    This member is added by an implicit conversion from Var[A] to EachOps[Binding, A] performed by method eachOps in com.thoughtworks.binding.Binding.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (var: EachOps[Binding, A]).each
    Definition Classes
    EachOps
    Annotations
    @compileTimeOnly( ... )

Inherited from Binding[A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion eachOps from Var[A] to EachOps[Binding, A]

Inherited by implicit conversion eachOps from Var[A] to EachOps[Binding, A]

Inherited by implicit conversion any2stringadd from Var[A] to any2stringadd[Var[A]]

Inherited by implicit conversion StringFormat from Var[A] to StringFormat[Var[A]]

Inherited by implicit conversion Ensuring from Var[A] to Ensuring[Var[A]]

Inherited by implicit conversion ArrowAssoc from Var[A] to ArrowAssoc[Var[A]]

Ungrouped