Class

io.udash.properties

ModelPropertyImpl

Related Doc: package properties

Permalink

abstract class ModelPropertyImpl[A] extends ModelProperty[A] with CastableProperty[A]

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

Instance Constructors

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

    Permalink

Abstract Value Members

  1. abstract def get: A

    Permalink

    returns

    Current property value.

    Definition Classes
    ReadableProperty
  2. abstract def set(t: A): Unit

    Permalink

    Changes current property value.

    Changes current property value. Fires value change listeners.

    Definition Classes
    Property
  3. abstract def setInitValue(t: A): Unit

    Permalink

    Changes current property value.

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

    Definition Classes
    Property

Concrete 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(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
  5. final def asInstanceOf[T0]: T0

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

    Permalink

    Safely casts DirectProperty[A] to ModelProperty[A]

    Safely casts DirectProperty[A] to ModelProperty[A]

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

    Permalink

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

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

    Definition Classes
    CastablePropertyCastableReadableProperty
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def combine[B, O](property: Property[B])(combiner: (A, B) ⇒ O)(implicit arg0: ModelValue[O]): Property[O]

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

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

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

    Permalink
    Definition Classes
    ModelPropertyImplReadableProperty
  13. def finalize(): Unit

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

    Permalink
    Attributes
    protected[io.udash.properties]
    Definition Classes
    ReadableProperty
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getSubProperty[T](key: String): Property[T]

    Permalink
  17. def hashCode(): Int

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

    Permalink

    Unique property ID.

    Unique property ID.

    Definition Classes
    ModelPropertyImplReadableProperty
  19. final def isInstanceOf[T0]: Boolean

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

    Permalink

    ModelProperty is valid if all validators return io.udash.properties.Valid and all subproperties are valid.

    ModelProperty is valid if all validators return io.udash.properties.Valid and all subproperties are valid.

    returns

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

    Definition Classes
    ReadableModelPropertyReadableProperty
  21. 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
  22. val listeners: Set[(A) ⇒ Any]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. val parent: Property[_]

    Permalink
    Definition Classes
    ModelPropertyImplReadableProperty
  27. val properties: Map[String, Property[_]]

    Permalink
    Attributes
    protected
    Definition Classes
    ReadableModelProperty
  28. macro def roSubModel[B](f: (A) ⇒ B)(implicit ev: ModelPart[B]): ReadableModelProperty[B]

    Permalink

    Returns child ModelProperty[B].

    Returns child ModelProperty[B].

    Definition Classes
    ReadableModelProperty
  29. macro def roSubProp[B](f: (A) ⇒ B)(implicit ev: ModelValue[B]): ReadableProperty[B]

    Permalink

    Returns child DirectProperty[B].

    Returns child DirectProperty[B].

    Definition Classes
    ReadableModelProperty
  30. macro def roSubSeq[B](f: (A) ⇒ Seq[B])(implicit ev: ModelSeq[Seq[B]]): ReadableSeqProperty[B, CastableReadableProperty[B]]

    Permalink

    Returns child DirectSeqProperty[B]

    Returns child DirectSeqProperty[B]

    Definition Classes
    ReadableModelProperty
  31. macro def subModel[B](f: (A) ⇒ B)(implicit ev: ModelPart[B]): ModelProperty[B]

    Permalink

    Returns child ModelProperty[B].

    Returns child ModelProperty[B].

    Definition Classes
    ModelProperty
  32. macro def subProp[B](f: (A) ⇒ B)(implicit ev: ModelValue[B]): Property[B]

    Permalink

    Returns child DirectProperty[B].

    Returns child DirectProperty[B].

    Definition Classes
    ModelProperty
  33. macro def subSeq[B](f: (A) ⇒ Seq[B])(implicit ev: ModelSeq[Seq[B]]): SeqProperty[B, CastableProperty[B]]

    Permalink

    Returns child DirectSeqProperty[B]

    Returns child DirectSeqProperty[B]

    Definition Classes
    ModelProperty
  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. 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
  37. def transform[B](transformer: (A) ⇒ B): ReadableProperty[B]

    Permalink

    Creates ReadableProperty[B] linked to this.

    Creates ReadableProperty[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.

    returns

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

    Definition Classes
    ReadableProperty
  38. def validate(): Unit

    Permalink
    Attributes
    protected[io.udash.properties]
    Definition Classes
    ReadableProperty
  39. var validationResult: Future[ValidationResult]

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

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

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

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

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

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

Inherited from CastableProperty[A]

Inherited from CastableReadableProperty[A]

Inherited from ModelProperty[A]

Inherited from Property[A]

Inherited from ReadableModelProperty[A]

Inherited from ReadableProperty[A]

Inherited from AnyRef

Inherited from Any

Ungrouped