Int.G.Pro.Observable

trait Observable[A <: Raw.Int] extends Int.G.Pro[A] with Pro.Observable[A]
Source
Pro.scala
trait Int.G.Pro[A]
trait Pro[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

def apply(): A
Inherited from
Pro
Source
Pro.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
Inherited from
Observable
Source
__.scala