trait CastableReadableProperty[A] extends ReadableProperty[A]
Property which can be casted.
NOTE: Those casts are checked in compilation time: "it compiles" == "it works".
- Alphabetic
- By Inheritance
- CastableReadableProperty
- ReadableProperty
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
fireValueListeners(): Unit
Fires value listeners.
Fires value listeners.
- Attributes
- protected[io.udash.properties]
- Definition Classes
- ReadableProperty
-
abstract
def
get: A
- returns
Current property value.
- Definition Classes
- ReadableProperty
-
abstract
val
id: PropertyId
Unique property ID.
Unique property ID.
- Definition Classes
- ReadableProperty
-
abstract
def
isValid: Future[ValidationResult]
- returns
validation result as Future, which will be completed on the validation process ending. It can fire validation process if needed.
- Definition Classes
- ReadableProperty
-
abstract
def
listen(valueListener: (A) ⇒ Any, initUpdate: Boolean = false): utils.Registration
Registers listener which will be called on value change.
Registers listener which will be called on value change.
- initUpdate
If
true
, listener will be instantly triggered with current value of property.
- Definition Classes
- ReadableProperty
-
abstract
def
listenOnce(valueListener: (A) ⇒ Any): utils.Registration
Registers listener which will be called on the next value change.
Registers listener which will be called on the next value change. This listener will be fired only once.
- Definition Classes
- ReadableProperty
-
abstract
def
listenersCount(): Int
Returns listeners count.
Returns listeners count.
- Definition Classes
- ReadableProperty
-
abstract
def
listenersUpdate(): Unit
This method should be called when the listener is registered or removed.
This method should be called when the listener is registered or removed.
- Attributes
- protected[io.udash.properties]
- Definition Classes
- ReadableProperty
-
abstract
def
parent: ReadableProperty[_]
Parent property.
Parent property.
null
if this property has no parent.- Attributes
- protected[io.udash.properties]
- Definition Classes
- ReadableProperty
-
abstract
def
readable: ReadableProperty[A]
Ensures read-only access to this property.
Ensures read-only access to this property.
- Definition Classes
- ReadableProperty
-
abstract
def
streamTo[B](target: Property[B], initUpdate: Boolean = true)(transformer: (A) ⇒ B): utils.Registration
Streams value changes to the
target
property.Streams value changes to the
target
property. It is not as strong relation astransform
, becausetarget
can change value independently.- Definition Classes
- ReadableProperty
-
abstract
def
transform[B](transformer: (A) ⇒ B): ReadableProperty[B]
Creates ReadableProperty[B] linked to
this
.Creates ReadableProperty[B] linked to
this
. Changes will be synchronized withthis
.- B
Type of new Property.
- transformer
Method transforming type A of existing Property to type B of new Property.
- returns
New ReadableProperty[B], which will be synchronised with original ReadableProperty[A].
- Definition Classes
- ReadableProperty
-
abstract
def
transformToSeq[B](transformer: (A) ⇒ Seq[B])(implicit arg0: PropertyCreator[B]): seq.ReadableSeqProperty[B, ReadableProperty[B]]
Creates ReadableSeqProperty[B] linked to
this
.Creates ReadableSeqProperty[B] linked to
this
. Changes will be synchronized withthis
.- B
Type of elements in new SeqProperty.
- transformer
Method transforming type A of existing Property to type Seq[B] of new Property.
- returns
New ReadableSeqProperty[B], which will be synchronised with original ReadableProperty[A].
- Definition Classes
- ReadableProperty
-
abstract
def
valid: ReadableProperty[ValidationResult]
Property containing validation result.
Property containing validation result.
- Definition Classes
- ReadableProperty
-
abstract
def
validate(): Unit
Triggers validation.
Triggers validation.
- Attributes
- protected[io.udash.properties]
- Definition Classes
- ReadableProperty
-
abstract
def
valueChanged(): Unit
This method should be called when the value has changed.
This method should be called when the value has changed.
- Attributes
- protected[io.udash.properties]
- Definition Classes
- ReadableProperty
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asModel(implicit ev: ModelPropertyCreator[A]): model.ReadableModelProperty[A]
Safely casts DirectProperty[A] to ModelProperty[A]
-
def
asSeq[B](implicit sev: =:=[A, Seq[B]], ev: SeqPropertyCreator[B]): seq.ReadableSeqProperty[B, CastableReadableProperty[B]]
Safely casts DirectProperty[Seq[A]] to DirectSeqProperty[A]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
combine[B, O](property: ReadableProperty[B], combinedParent: ReadableProperty[_] = null)(combiner: (A, B) ⇒ O)(implicit arg0: PropertyCreator[O]): ReadableProperty[O]
Combines two properties into a new one.
Combines two properties into a new one. Created property will be updated after any change in the origin ones.
- B
Type of elements in provided property.
- O
Output property elements type.
- property
Property[B]
to combine withthis
.- combinedParent
Parent of combined property,
null
by default.- combiner
Method combining values A and B into O.
- returns
Property[O] updated on any change in
this
orproperty
.
- Definition Classes
- ReadableProperty
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )