Pro.Observable.X.Base

abstract class Base[A] extends Pro.X.Base[A] with Pro.Observable.X.Basis[A]
Source
X.scala
class Pro.X.Base[A]
trait Pro.X.Basis[A]
trait Able.Doc
trait Able.Tag
trait Pro[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

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
protected def fireChange: Int
Inherited from
Basis
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
Inherited from
Basis
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