- Source
- Pro.scala
trait Pro.Observable[Float.G.Pro.Observable.A]
trait Observable
trait Float.G.Pro[Float.G.Pro.Observable.A]
trait Any.Z.PrimitiveTag.Float
trait Any.Z.PrimitiveTag
trait Pro[Float.G.Pro.Observable.A]
class java.lang.Object
trait scala.Matchable
class Any
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]
trait Float.G.Pro.ObservableMutable[Float.G.Pro.ObservableMutable.A]
class Float.G.Pro.ObservableMutable.X.Basic[Float.G.Pro.ObservableMutable.X.Basic.A]
Def
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