Class

io.udash.properties.seq

DirectSeqPropertyImpl

Related Doc: package seq

Permalink

class DirectSeqPropertyImpl[A] extends SeqProperty[A, CastableProperty[A]] with CastableProperty[Seq[A]]

Linear Supertypes
CastableProperty[Seq[A]], CastableReadableProperty[Seq[A]], SeqProperty[A, CastableProperty[A]], Property[Seq[A]], AbstractReadableSeqProperty[A, CastableProperty[A]], ReadableSeqProperty[A, CastableProperty[A]], AbstractReadableProperty[Seq[A]], ReadableProperty[Seq[A]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirectSeqPropertyImpl
  2. CastableProperty
  3. CastableReadableProperty
  4. SeqProperty
  5. Property
  6. AbstractReadableSeqProperty
  7. ReadableSeqProperty
  8. AbstractReadableProperty
  9. ReadableProperty
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DirectSeqPropertyImpl(parent: ReadableProperty[_], id: PropertyId)(implicit arg0: PropertyCreator[A])

    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: (Seq[A]) ⇒ ValidationResult): 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[Seq[A]]): 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. def append(values: A*): Unit

    Permalink

    Adds values at the end of the sequence.

    Adds values at the end of the sequence.

    Definition Classes
    SeqProperty
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asModel(implicit ev: ModelPropertyCreator[Seq[A]]): ModelProperty[Seq[A]]

    Permalink

    Safely casts DirectProperty[A] to ModelProperty[A]

    Safely casts DirectProperty[A] to ModelProperty[A]

    Definition Classes
    CastablePropertyCastableReadableProperty
  9. def asSeq[B](implicit sev: =:=[Seq[A], Seq[B]], ev: SeqPropertyCreator[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
  10. def clear(): Unit

    Permalink

    Removes all elements from this SeqProperty.

    Removes all elements from this SeqProperty.

    Definition Classes
    SeqProperty
  11. def clearListeners(): Unit

    Permalink

    Removes all listeners from property.

    Removes all listeners from property.

    Definition Classes
    DirectSeqPropertyImplProperty
  12. 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
  13. def clone(): AnyRef

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

    Permalink

    Combines every element of this SeqProperty with provided Property creating new ReadableSeqProperty as the result.

    Combines every element of this SeqProperty with provided Property creating new ReadableSeqProperty as the result.

    Definition Classes
    ReadableSeqProperty
  15. def combine[B, O](property: ReadableProperty[B], combinedParent: ReadableProperty[_] = null)(combiner: (Seq[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.

    Definition Classes
    ReadableProperty
  16. def elemProperties: Seq[CastableProperty[A]]

    Permalink

    returns

    Sequence of child properties.

    Definition Classes
    DirectSeqPropertyImplReadableSeqProperty
  17. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def filter(matcher: (A) ⇒ Boolean): ReadableSeqProperty[A, _ <: CastableProperty[A]]

    Permalink

    Filters ReadableSeqProperty[A].

    Filters ReadableSeqProperty[A].

    returns

    New ReadableSeqProperty[A] with matched elements, which will be synchronised with original ReadableSeqProperty[A].

    Definition Classes
    AbstractReadableSeqPropertyReadableSeqProperty
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def fireElementsListeners[ItemType <: ReadableProperty[A]](patch: Patch[ItemType], structureListeners: Buffer[(Patch[ItemType]) ⇒ Any]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractReadableSeqProperty
  22. def fireValueListeners(): Unit

    Permalink

    Fires value listeners.

    Fires value listeners.

    Attributes
    protected[io.udash.properties]
    Definition Classes
    AbstractReadableProperty → ReadableProperty
  23. def get: Seq[A]

    Permalink

    returns

    Current property value.

    Definition Classes
    DirectSeqPropertyImplReadableProperty
  24. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. val id: PropertyId

    Permalink

    Unique property ID.

    Unique property ID.

    Definition Classes
    DirectSeqPropertyImplReadableProperty
  27. def insert(idx: Int, values: A*): Unit

    Permalink

    Inserts values on index idx.

    Inserts values on index idx.

    Definition Classes
    SeqProperty
  28. def isEmpty: Boolean

    Permalink

    Tests whether this traversable collection is empty.

    Tests whether this traversable collection is empty.

    Definition Classes
    ReadableSeqProperty
  29. final def isInstanceOf[T0]: Boolean

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

    Permalink

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

    SeqProperty 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
    AbstractReadableSeqProperty → AbstractReadableProperty → ReadableProperty
  31. def length: Int

    Permalink

    The size of this sequence.

    The size of this sequence.

    Definition Classes
    ReadableSeqProperty
  32. def listen(valueListener: (Seq[A]) ⇒ Any, initUpdate: Boolean = false): 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.

    Definition Classes
    AbstractReadableProperty → ReadableProperty
  33. def listenOnce(valueListener: (Seq[A]) ⇒ Any): 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.

    Definition Classes
    AbstractReadableProperty → ReadableProperty
  34. def listenStructure(l: (Patch[CastableProperty[A]]) ⇒ Any): Registration

    Permalink

    Registers listener, which will be called on every property structure change.

    Registers listener, which will be called on every property structure change.

    Definition Classes
    DirectSeqPropertyImplReadableSeqProperty
  35. val listeners: Buffer[(Seq[A]) ⇒ Any]

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

    Permalink
    Definition Classes
    AnyRef
  37. def nonEmpty: Boolean

    Permalink

    Tests whether this traversable collection is not empty.

    Tests whether this traversable collection is not empty.

    Definition Classes
    ReadableSeqProperty
  38. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  40. val oneTimeListeners: Buffer[((Seq[A]) ⇒ Any, () ⇒ Any)]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AbstractReadableProperty
  41. val parent: ReadableProperty[_]

    Permalink

    Parent property.

    Parent property. null if this property has no parent.

    Definition Classes
    DirectSeqPropertyImplReadableProperty
  42. def prepend(values: A*): Unit

    Permalink

    Adds values at the begging of the sequence.

    Adds values at the begging of the sequence.

    Definition Classes
    SeqProperty
  43. def remove(value: A): Unit

    Permalink

    Removes first occurrence of value.

    Removes first occurrence of value.

    Definition Classes
    SeqProperty
  44. def remove(idx: Int, amount: Int): Unit

    Permalink

    Removes amount elements starting from index idx.

    Removes amount elements starting from index idx.

    Definition Classes
    SeqProperty
  45. def replace(idx: Int, amount: Int, values: A*): Unit

    Permalink

    Replaces amount elements from index idx with provided values.

    Replaces amount elements from index idx with provided values.

    Definition Classes
    DirectSeqPropertyImplSeqProperty
  46. def reversed(): SeqProperty[A, Property[A]]

    Permalink

    Creates SeqProperty[A] providing reversed order of elements from this.

    Creates SeqProperty[A] providing reversed order of elements from this.

    Definition Classes
    SeqPropertyAbstractReadableSeqPropertyReadableSeqProperty
  47. def set(t: Seq[A], force: Boolean = false): Unit

    Permalink

    Changes current property value.

    Changes current property value. Fires value change listeners.

    t

    Should not be null!

    force

    If true, the value change listeners will be fired even if value didn't change.

    Definition Classes
    DirectSeqPropertyImplProperty
  48. def setInitValue(t: Seq[A]): Unit

    Permalink

    Changes current property value.

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

    Definition Classes
    DirectSeqPropertyImplProperty
  49. def size: Int

    Permalink

    The size of this sequence, equivalent to length.

    The size of this sequence, equivalent to length.

    Definition Classes
    ReadableSeqProperty
  50. def streamTo[B](target: Property[B], initUpdate: Boolean = true)(transformer: (Seq[A]) ⇒ B): 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
    AbstractReadableProperty → ReadableProperty
  51. def sync[B](p: Property[B])(transformer: (Seq[A]) ⇒ B, revert: (B) ⇒ Seq[A]): Registration

    Permalink

    Bidirectionally synchronizes Property[B] with this.

    Bidirectionally synchronizes Property[B] with this. The transformed value is synchronized from this to Property[B] on initialization.

    B

    Type of new Property.

    p

    Property to be synchronized with this.

    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

    Bidirectional registration between existing and new property.

    Definition Classes
    Property
  52. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  54. 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
    DirectSeqPropertyImplProperty
  55. def transform[B](transformer: (A) ⇒ B, revert: (B) ⇒ A): SeqProperty[B, Property[B]]

    Permalink

    Transforms SeqProperty[A] into SeqProperty[B].

    Transforms SeqProperty[A] into SeqProperty[B].

    returns

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

    Definition Classes
    SeqProperty
  56. def transform[B](transformer: (Seq[A]) ⇒ B, revert: (B) ⇒ Seq[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
  57. def transform[B](transformer: (A) ⇒ B): ReadableSeqProperty[B, ReadableProperty[B]]

    Permalink

    Transforms ReadableSeqProperty[A] into ReadableSeqProperty[B].

    Transforms ReadableSeqProperty[A] into ReadableSeqProperty[B].

    returns

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

    Definition Classes
    AbstractReadableSeqPropertyReadableSeqProperty
  58. def transform[B](transformer: (Seq[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
    AbstractReadableProperty → ReadableProperty
  59. def transformToSeq[B](transformer: (Seq[A]) ⇒ Seq[B], revert: (Seq[B]) ⇒ Seq[A])(implicit arg0: PropertyCreator[B]): 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
  60. def transformToSeq[B](transformer: (Seq[A]) ⇒ Seq[B])(implicit arg0: PropertyCreator[B]): 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
    AbstractReadableProperty → ReadableProperty
  61. lazy val valid: ReadableProperty[ValidationResult]

    Permalink

    Property containing validation result.

    Property containing validation result.

    Definition Classes
    AbstractReadableProperty → ReadableProperty
  62. def validate(): Unit

    Permalink

    Triggers validation.

    Triggers validation.

    Attributes
    protected[io.udash.properties]
    Definition Classes
    AbstractReadableProperty → ReadableProperty
  63. lazy val validationProperty: ValidationProperty[Seq[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AbstractReadableProperty
  64. var validationResult: Future[ValidationResult]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AbstractReadableProperty
  65. val validators: Buffer[Validator[Seq[A]]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AbstractReadableProperty
  66. 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]
    Definition Classes
    AbstractReadableProperty → ReadableProperty
  67. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. def zip[B, O](property: ReadableSeqProperty[B, ReadableProperty[B]])(combiner: (A, B) ⇒ O)(implicit arg0: PropertyCreator[O]): ReadableSeqProperty[O, ReadableProperty[O]]

    Permalink

    Zips elements from this and provided property by combining every pair using provided combiner.

    Zips elements from this and provided property by combining every pair using provided combiner.

    Definition Classes
    ReadableSeqProperty
  71. def zipAll[B, O](property: ReadableSeqProperty[B, ReadableProperty[B]])(combiner: (A, B) ⇒ O, defaultA: ReadableProperty[A], defaultB: ReadableProperty[B])(implicit arg0: PropertyCreator[O]): ReadableSeqProperty[O, ReadableProperty[O]]

    Permalink

    Zips elements from this and provided property by combining every pair using provided combiner.

    Zips elements from this and provided property by combining every pair using provided combiner. Uses defaultA and defaultB to fill smaller sequence.

    Definition Classes
    ReadableSeqProperty
  72. lazy val zipWithIndex: ReadableSeqProperty[(A, Int), ReadableProperty[(A, Int)]]

    Permalink

    Zips elements from this SeqProperty with their indexes.

    Zips elements from this SeqProperty with their indexes.

    Definition Classes
    AbstractReadableSeqPropertyReadableSeqProperty

Inherited from CastableProperty[Seq[A]]

Inherited from CastableReadableProperty[Seq[A]]

Inherited from SeqProperty[A, CastableProperty[A]]

Inherited from Property[Seq[A]]

Inherited from ReadableSeqProperty[A, CastableProperty[A]]

Inherited from AbstractReadableProperty[Seq[A]]

Inherited from ReadableProperty[Seq[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped