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