trait ObservableMutable[A <: Any.Double] extends Double.G.Pro.M[A] with Double.G.Pro.O[A] with Pro.OM[A]
- Source
- Pro.scala
trait Pro.ObservableMutable[Double.G.Pro.ObservableMutable.A]
trait Double.G.Pro.Observable[Double.G.Pro.ObservableMutable.A]
trait Pro.Observable[Double.G.Pro.ObservableMutable.A]
trait Observable
trait Double.G.Pro.Mutable[Double.G.Pro.ObservableMutable.A]
trait Pro.Mutable[Double.G.Pro.ObservableMutable.A]
trait Double.G.Pro[Double.G.Pro.ObservableMutable.A]
trait Any.Z.PrimitiveTag.Double
trait Any.Z.PrimitiveTag
trait Pro[Double.G.Pro.ObservableMutable.A]
class java.lang.Object
trait scala.Matchable
class Any
class Double.G.Pro.ObservableMutable.X.Abstract[Double.G.Pro.ObservableMutable.X.Abstract.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