class Prop[T] extends StateChannel[T]
Functionally similar to Var, except represents a far more simplistic and light-weight storage of a value, not a function. Not that Var is heavy, but this is the absolute bare minimum representation of a mutable value while still remaining Observable.
- T
the type of this Prop
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Prop
- StateChannel
- Channel
- State
- Observable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Prop(stored: T, distinct: Boolean)
- stored
the initial value
- distinct
true if this should only fire changes when the new value being set is not equal
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
:=(value: ⇒ T): Unit
Convenience method to send a value to
set
similarly to an assignment operator.Convenience method to send a value to
set
similarly to an assignment operator.- value
the value to apply
- Definition Classes
- Channel
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(): T
- Definition Classes
- State
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attach(f: (T) ⇒ Unit): (T) ⇒ Unit
- Definition Classes
- Observable
-
def
attachAndFire(f: (T) ⇒ Unit): (T) ⇒ Unit
- Definition Classes
- State
-
def
changes(listener: ChangeListener[T]): (T) ⇒ Unit
- Definition Classes
- State → Observable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
detach(f: (T) ⇒ Unit): Unit
- Definition Classes
- Observable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fire(value: T): Unit
- Attributes
- protected[reactify]
- Definition Classes
- Observable
- def get: T
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def observing: Set[Observable[_]]
-
def
set(value: ⇒ T): Unit
Fires the value to all attached listeners.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Prop → AnyRef → Any
-
def
value: T
- Definition Classes
- State
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )