Observable

trait Observable

General Observable

General Observable is the root interface of all observable types.

  val pro = Pro.OM[Int](0)

  pro.onObservableChange(() => "Change detected".tp)

  pro() = 1

  // Output
  Change detected
Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any
trait Collection.Observable[Collection.Observable.A]
trait Collection.ObservableMutable[Collection.ObservableMutable.A]
trait Idx.Selection.Observable[Idx.Selection.Observable.A]
trait Pro.Observable[Pro.Observable.A]
trait Pro.ObservableMutable[Pro.ObservableMutable.A]
class Pro.ObservableMutable.X.Abstract[Pro.ObservableMutable.X.Abstract.A]
class Pro.ObservableMutable.X.Basic[Pro.ObservableMutable.X.Basic.A]
trait Pro.ObservableMutable.X.Base[Pro.ObservableMutable.X.Base.A]
trait Pro.Observable.X.Base[Pro.Observable.X.Base.A]
class Boolean.G.Pro.ObservableMutable.X.Basic[Boolean.G.Pro.ObservableMutable.X.Basic.A]
class Byte.G.Pro.ObservableMutable.X.Basic[Byte.G.Pro.ObservableMutable.X.Basic.A]
class Char.G.Pro.ObservableMutable.X.Basic[Char.G.Pro.ObservableMutable.X.Basic.A]
class Double.G.Pro.ObservableMutable.X.Basic[Double.G.Pro.ObservableMutable.X.Basic.A]
class Float.G.Pro.ObservableMutable.X.Basic[Float.G.Pro.ObservableMutable.X.Basic.A]
class Int.G.Pro.ObservableMutable.X.Basic[Int.G.Pro.ObservableMutable.X.Basic.A]
class Long.G.Pro.ObservableMutable.X.Basic[Long.G.Pro.ObservableMutable.X.Basic.A]
class Short.G.Pro.ObservableMutable.X.Basic[Short.G.Pro.ObservableMutable.X.Basic.A]
class Pro.Observable.X.Abstract[Pro.Observable.X.Abstract.A]
class Boolean.G.Pro.Observable.X.Abstract[Boolean.G.Pro.Observable.X.Abstract.A]
class Boolean.G.Pro.ObservableMutable.X.Abstract[Boolean.G.Pro.ObservableMutable.X.Abstract.A]
class Byte.G.Pro.Observable.X.Abstract[Byte.G.Pro.Observable.X.Abstract.A]
class Byte.G.Pro.ObservableMutable.X.Abstract[Byte.G.Pro.ObservableMutable.X.Abstract.A]
class Char.G.Pro.Observable.X.Abstract[Char.G.Pro.Observable.X.Abstract.A]
class Char.G.Pro.ObservableMutable.X.Abstract[Char.G.Pro.ObservableMutable.X.Abstract.A]
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]
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]
class Int.G.Pro.Observable.X.Abstract[Int.G.Pro.Observable.X.Abstract.A]
class Int.G.Pro.ObservableMutable.X.Abstract[Int.G.Pro.ObservableMutable.X.Abstract.A]
class Long.G.Pro.Observable.X.Abstract[Long.G.Pro.Observable.X.Abstract.A]
class Long.G.Pro.ObservableMutable.X.Abstract[Long.G.Pro.ObservableMutable.X.Abstract.A]
class Short.G.Pro.Observable.X.Abstract[Short.G.Pro.Observable.X.Abstract.A]
class Short.G.Pro.ObservableMutable.X.Abstract[Short.G.Pro.ObservableMutable.X.Abstract.A]
class Pro.Observable.X.Basic[Pro.Observable.X.Basic.A]
trait Pro.Observable.X.ActivationBase[Pro.Observable.X.ActivationBase.A]

Def

def onObservableChange[U](l: () => U): Event.Control

On any change event

On any change event

This is the most general event indicating a change

Usually an object will have other more usable events, but they will also trigger this one

The method is protected in order not to pollute object name space

This event will likely be used by GUI controls, which will call it through companion object access method

Source
__.scala