Char.G.Pro.ObservableMutable

Companion
object
Source
Pro.scala
trait Pro.Mutable[A]
trait Char.G.Pro[A]
trait Pro[A]
class Object
trait Matchable
class Any

Def

Inherited

def apply(): A
Inherited from
Pro
Source
Pro.scala
def onChange[U](l: () => U): 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
def update(v: A): Unit
Inherited from
Mutable
Source
Pro.scala