Pro.Observable

trait Observable[+A] extends Pro[A] with Gen.O
trait Pro[Pro.Observable.A]
class java.lang.Object
trait scala.Matchable
class Any
trait Pro.ObservableMutable[Pro.ObservableMutable.A]
class Pro.ObservableMutable.X.Abstract[Pro.ObservableMutable.X.Abstract.A]
class Pro.ObservableMutable.X.Basic[Pro.ObservableMutable.X.Basic.A]
trait Pro.ObservableMutable.X.Base[Pro.ObservableMutable.X.Base.A]
trait Pro.Observable.X.Base[Pro.Observable.X.Base.A]
class Boolean.G.Pro.ObservableMutable.X.Basic[Boolean.G.Pro.ObservableMutable.X.Basic.A]
class Byte.G.Pro.ObservableMutable.X.Basic[Byte.G.Pro.ObservableMutable.X.Basic.A]
class Char.G.Pro.ObservableMutable.X.Basic[Char.G.Pro.ObservableMutable.X.Basic.A]
class Double.G.Pro.ObservableMutable.X.Basic[Double.G.Pro.ObservableMutable.X.Basic.A]
class Float.G.Pro.ObservableMutable.X.Basic[Float.G.Pro.ObservableMutable.X.Basic.A]
class Int.G.Pro.ObservableMutable.X.Basic[Int.G.Pro.ObservableMutable.X.Basic.A]
class Long.G.Pro.ObservableMutable.X.Basic[Long.G.Pro.ObservableMutable.X.Basic.A]
class Short.G.Pro.ObservableMutable.X.Basic[Short.G.Pro.ObservableMutable.X.Basic.A]
class Pro.Observable.X.Abstract[Pro.Observable.X.Abstract.A]
class Boolean.G.Pro.Observable.X.Abstract[Boolean.G.Pro.Observable.X.Abstract.A]
class Boolean.G.Pro.ObservableMutable.X.Abstract[Boolean.G.Pro.ObservableMutable.X.Abstract.A]
class Byte.G.Pro.Observable.X.Abstract[Byte.G.Pro.Observable.X.Abstract.A]
class Byte.G.Pro.ObservableMutable.X.Abstract[Byte.G.Pro.ObservableMutable.X.Abstract.A]
class Char.G.Pro.Observable.X.Abstract[Char.G.Pro.Observable.X.Abstract.A]
class Char.G.Pro.ObservableMutable.X.Abstract[Char.G.Pro.ObservableMutable.X.Abstract.A]
class Double.G.Pro.Observable.X.Abstract[Double.G.Pro.Observable.X.Abstract.A]
class Double.G.Pro.ObservableMutable.X.Abstract[Double.G.Pro.ObservableMutable.X.Abstract.A]
class Float.G.Pro.Observable.X.Abstract[Float.G.Pro.Observable.X.Abstract.A]
class Float.G.Pro.ObservableMutable.X.Abstract[Float.G.Pro.ObservableMutable.X.Abstract.A]
class Int.G.Pro.Observable.X.Abstract[Int.G.Pro.Observable.X.Abstract.A]
class Int.G.Pro.ObservableMutable.X.Abstract[Int.G.Pro.ObservableMutable.X.Abstract.A]
class Long.G.Pro.Observable.X.Abstract[Long.G.Pro.Observable.X.Abstract.A]
class Long.G.Pro.ObservableMutable.X.Abstract[Long.G.Pro.ObservableMutable.X.Abstract.A]
class Short.G.Pro.Observable.X.Abstract[Short.G.Pro.Observable.X.Abstract.A]
class Short.G.Pro.ObservableMutable.X.Abstract[Short.G.Pro.ObservableMutable.X.Abstract.A]
class Pro.Observable.X.Basic[Pro.Observable.X.Basic.A]
trait Pro.Observable.X.ActivationBase[Pro.Observable.X.ActivationBase.A]

Def

def apply(): A

Get value

Get value

Returns property value

   val pro: Pro.M[String] = Pro.M[String]("abc")

   val v1 = pro.apply() // Regular call
   val v2 = pro()       // Scala "syntactic sugar" call
Inherited from
Pro
Source
__.scala
def onChange[U](l: () => U): Event.Control

On change subscription

On change subscription

Adds given function as listener to property change events

   val pro = String.Pro.OM("foo")

   // event subscription
   pro.onChange(() => "Change Detected".tp)

   // library based event subscription
   pro.onValueChangeWithOld((v, old) => "Value changed from " + old + " to " + v tp()))

   pro() = "bar"

   // Output
   Value changed from foo to bar
   Change Detected
Source
__.scala
def onObservableChange[U](l: () => U): Event.Control
Source
__.scala

Extension

def mapView[A](f: A => B): Pro.O[B]
Source
__.scala
def mixView[A](v: Pro.O[B], mix: (A, B) => C): Pro.O[C]
Source
__.scala
def onChangeRun[A](f: => U): Event.Control
Source
__.scala
def onValueChange[A](l: A => U): Event.Control
Source
__.scala
def onValueChangeWithOld[A](l: (A, A) => U): Event.Control
Source
__.scala