Class

io.udash.properties.single

DirectPropertyImpl

Related Doc: package single

Permalink

abstract class DirectPropertyImpl[A] extends CastableProperty[A]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirectPropertyImpl
  2. CastableProperty
  3. Property
  4. CastableReadableProperty
  5. ReadableProperty
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DirectPropertyImpl(parent: ReadableProperty[_], id: UUID)(implicit executionContext: ExecutionContext)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addValidator(f: (A) ⇒ ValidationResult): utils.Registration

    Permalink

    Adds new validator and clears current validation result.

    Adds new validator and clears current validation result. It does not fire validation process.

    Definition Classes
    Property
  5. def addValidator(v: Validator[A]): utils.Registration

    Permalink

    Adds new validator and clears current validation result.

    Adds new validator and clears current validation result. It does not fire validation process.

    Definition Classes
    Property
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def asModel(implicit ev: ModelPart[A]): model.ModelProperty[A]

    Permalink

    Safely casts DirectProperty[A] to ModelProperty[A]

    Safely casts DirectProperty[A] to ModelProperty[A]

    Definition Classes
    CastablePropertyCastableReadableProperty
  8. def asSeq[B](implicit ev: ModelSeq[A], sev: =:=[A, Seq[B]]): seq.SeqProperty[B, CastableProperty[B]]

    Permalink

    Safely casts DirectProperty[Seq[A]] to DirectSeqProperty[A]

    Safely casts DirectProperty[Seq[A]] to DirectSeqProperty[A]

    Definition Classes
    CastablePropertyCastableReadableProperty
  9. def clearValidators(): Unit

    Permalink

    Removes all validators from property and clears current validation result.

    Removes all validators from property and clears current validation result. It does not fire validation process.

    Definition Classes
    Property
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def combine[B, O](property: ReadableProperty[B], combinedParent: ReadableProperty[_] = null)(combiner: (A, B) ⇒ O)(implicit arg0: ModelValue[O]): ReadableProperty[O]

    Permalink

    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 with this.

    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 or property.

    Definition Classes
    ReadableProperty
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. implicit val executionContext: ExecutionContext

    Permalink
    Definition Classes
    DirectPropertyImplReadableProperty
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fireValueListeners(): Unit

    Permalink
    Attributes
    protected[io.udash.properties]
    Definition Classes
    ReadableProperty
  17. def get: A

    Permalink

    returns

    Current property value.

    Definition Classes
    DirectPropertyImplReadableProperty
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. val id: UUID

    Permalink

    Unique property ID.

    Unique property ID.

    Definition Classes
    DirectPropertyImplReadableProperty
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isValid: Future[ValidationResult]

    Permalink

    returns

    validation result as Future, which will be completed on the validation process ending. It can fire validation process if needed.

    Definition Classes
    ReadableProperty
  23. def listen(l: (A) ⇒ Any): utils.Registration

    Permalink

    Registers listener which will be called on value change.

    Registers listener which will be called on value change.

    Definition Classes
    ReadableProperty
  24. val listeners: Set[(A) ⇒ Any]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ReadableProperty
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. val parent: ReadableProperty[_]

    Permalink
    Definition Classes
    DirectPropertyImplReadableProperty
  29. def set(t: A): Unit

    Permalink

    Changes current property value.

    Changes current property value. Fires value change listeners.

    t

    Should not be null!

    Definition Classes
    DirectPropertyImplProperty
  30. def setInitValue(t: A): Unit

    Permalink

    Changes current property value.

    Changes current property value. Does not fire value change listeners.

    Definition Classes
    DirectPropertyImplProperty
  31. def streamTo[B](target: Property[B], initUpdate: Boolean = true)(transformer: (A) ⇒ B): utils.Registration

    Permalink

    Streams value changes to the target property.

    Streams value changes to the target property. It is not as strong relation as transform, because target can change value independently.

    Definition Classes
    ReadableProperty
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def touch(): Unit

    Permalink

    Fires value change listeners with current value and clears validation result.

    Fires value change listeners with current value and clears validation result.

    Definition Classes
    DirectPropertyImplProperty
  35. def transform[B](transformer: (A) ⇒ B, revert: (B) ⇒ A): Property[B]

    Permalink

    Creates Property[B] linked to this.

    Creates Property[B] linked to this. Changes will be bidirectionally synchronized between this and new property.

    B

    Type of new Property.

    transformer

    Method transforming type A of existing Property to type B of new Property.

    revert

    Method transforming type B of new Property to type A of existing Property.

    returns

    New Property[B], which will be synchronised with original Property[A].

    Definition Classes
    Property
  36. def transform[B](transformer: (A) ⇒ B): ReadableProperty[B]

    Permalink

    Creates ReadableProperty[B] linked to this.

    Creates ReadableProperty[B] linked to this. Changes will be synchronized with this.

    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
  37. def transformToSeq[B](transformer: (A) ⇒ Seq[B], revert: (Seq[B]) ⇒ A)(implicit arg0: ModelValue[B]): seq.SeqProperty[B, Property[B]]

    Permalink

    Creates SeqProperty[B] linked to this.

    Creates SeqProperty[B] linked to this. Changes will be synchronized with this in both directions.

    B

    Type of elements in new SeqProperty.

    transformer

    Method transforming type A of existing Property to type Seq[B] of new Property.

    revert

    Method transforming type Seq[B] to A.

    returns

    New ReadableSeqProperty[B], which will be synchronised with original Property[A].

    Definition Classes
    Property
  38. def transformToSeq[B](transformer: (A) ⇒ Seq[B])(implicit arg0: ModelValue[B]): seq.ReadableSeqProperty[B, ReadableProperty[B]]

    Permalink

    Creates ReadableSeqProperty[B] linked to this.

    Creates ReadableSeqProperty[B] linked to this. Changes will be synchronized with this.

    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
  39. lazy val valid: ReadableProperty[ValidationResult]

    Permalink

    Property containing validation result.

    Property containing validation result.

    Definition Classes
    ReadableProperty
  40. def validate(): Unit

    Permalink
    Attributes
    protected[io.udash.properties]
    Definition Classes
    ReadableProperty
  41. lazy val validationProperty: ValidationProperty[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ReadableProperty
  42. var validationResult: Future[ValidationResult]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ReadableProperty
  43. val validators: Set[Validator[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ReadableProperty
  44. def valueChanged(): Unit

    Permalink
    Attributes
    protected[io.udash.properties]
    Definition Classes
    ReadableProperty
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CastableProperty[A]

Inherited from Property[A]

Inherited from CastableReadableProperty[A]

Inherited from ReadableProperty[A]

Inherited from AnyRef

Inherited from Any

Ungrouped