Trait

io.udash.properties.single

ReadableProperty

Related Doc: package single

Permalink

trait ReadableProperty[+A] extends AnyRef

Base interface of every Property in Udash.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadableProperty
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fireValueListeners(): Unit

    Permalink

    Fires value listeners.

    Fires value listeners.

    Attributes
    protected[io.udash.properties]
  2. abstract def get: A

    Permalink

    returns

    Current property value.

  3. abstract val id: PropertyId

    Permalink

    Unique property ID.

  4. abstract 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.

  5. abstract def listen(valueListener: (A) ⇒ Any, initUpdate: Boolean = false): utils.Registration

    Permalink

    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.

  6. abstract def listenOnce(valueListener: (A) ⇒ Any): utils.Registration

    Permalink

    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.

  7. abstract def listenersCount(): Int

    Permalink

    Returns listeners count.

  8. abstract def listenersUpdate(): Unit

    Permalink

    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]
  9. abstract def parent: ReadableProperty[_]

    Permalink

    Parent property.

    Parent property. null if this property has no parent.

    Attributes
    protected[io.udash.properties]
  10. abstract def readable: ReadableProperty[A]

    Permalink

    Ensures read-only access to this property.

  11. abstract 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.

  12. abstract 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].

  13. abstract def transformToSeq[B](transformer: (A) ⇒ Seq[B])(implicit arg0: PropertyCreator[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].

  14. abstract def valid: ReadableProperty[ValidationResult]

    Permalink

    Property containing validation result.

  15. abstract def validate(): Unit

    Permalink

    Triggers validation.

    Triggers validation.

    Attributes
    protected[io.udash.properties]
  16. abstract def valueChanged(): Unit

    Permalink

    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]

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. def combine[B, O](property: ReadableProperty[B], combinedParent: ReadableProperty[_] = null)(combiner: (A, B) ⇒ O)(implicit arg0: PropertyCreator[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.

  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped