Short.G.Pro.Observable

trait Observable[A <: RAW] extends Short.G.Pro[A] with Pro.Observable[A]
Companion
object
Source
Pro.scala
trait Short.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