Pro.Observable.X.ActivationBasis

Source
X.scala
trait Pro.X.Basis[A]
trait Able.Doc
trait Able.Tag
trait Pro[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

protected def _afterFirstListenerAdded: Unit
Source
X.scala
protected def _afterLastListenerRemoved: Unit
Source
X.scala
def apply(): A

Get value

Get value

Returns property value

   val pro: Pro.M[String] = Pro.M[String]("abc")

   val v1 = pro.apply() // Regular call
   val v2 = pro()       // Scala "syntactic sugar" call
Inherited from
Pro
Source
__.scala
def doc: Doc
Inherited from
Basis
Source
X.scala
lazy protected val eventStore: Event.Store
Inherited from
Provider
Source
Provider.scala
override protected def fireChange: Int
Definition Classes
Source
X.scala
override def onChange[U](f: () => U): Event.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
Definition Classes
Source
X.scala
def tag: String

Make String

Make String

tag returns this instance String representation, which should be used insted of toString

Inherited from
Doc
Source
Doc.scala