Pro.Observable

trait Observable[+A] extends Pro[A] with Observable
trait Pro[A]
class java.lang.Object
trait scala.Matchable
class Any

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

Extension

@scala.annotation.targetName("map_View")
def map_^[A](f: A => B): Pro.Observable[B]
Source
__.scala
@scala.annotation.targetName("mix_View")
def mix_^[A](v: Pro.Observable[B], mix: (A, B) => C): Pro.Observable[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