Class/Object

scalafx.collections

ObservableBuffer

Related Docs: object ObservableBuffer | package collections

Permalink

class ObservableBuffer[T] extends Buffer[T] with BufferLike[T, ObservableBuffer[T]] with GenericTraversableTemplate[T, ObservableBuffer] with Builder[T, ObservableBuffer[T]] with Observable with SFXDelegate[ObservableList[T]]

Wrapper class to JavaFX's ObservableList.

T

Type of this Buffer

Source
ObservableBuffer.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableBuffer
  2. Observable
  3. SFXDelegate
  4. Builder
  5. Buffer
  6. BufferLike
  7. Subtractable
  8. Scriptable
  9. Shrinkable
  10. Growable
  11. Clearable
  12. Seq
  13. SeqLike
  14. Cloneable
  15. Cloneable
  16. Cloneable
  17. Seq
  18. SeqLike
  19. GenSeq
  20. GenSeqLike
  21. PartialFunction
  22. Function1
  23. Iterable
  24. Iterable
  25. IterableLike
  26. Equals
  27. GenIterable
  28. GenIterableLike
  29. Traversable
  30. Mutable
  31. Traversable
  32. GenTraversable
  33. GenericTraversableTemplate
  34. TraversableLike
  35. GenTraversableLike
  36. Parallelizable
  37. TraversableOnce
  38. GenTraversableOnce
  39. FilterMonadic
  40. HasNewBuilder
  41. AnyRef
  42. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObservableBuffer(delegate: ObservableList[T] = ...)

    Permalink

Type Members

  1. type Self = ObservableBuffer[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(xs: GenTraversableOnce[T]): ObservableBuffer[T]

    Permalink

    Creates a new ObservableBuffer containing both the elements of this Buffer and the provided traversable object.

    Creates a new ObservableBuffer containing both the elements of this Buffer and the provided traversable object. Overridden method to make it behave like a wrapped ObservableList. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    xs

    The traversable object.

    returns

    A new ObservableBuffer consisting of all the elements of this Buffer and xs. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    Definition Classes
    ObservableBuffer → BufferLike
  4. def ++[B >: T, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: T, That](that: Traversable[B])(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  6. def ++:[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  7. def ++=(xs: TraversableOnce[T]): ObservableBuffer.this.type

    Permalink

    Adds all elements produced by a TraversableOnce to this ObservableBuffer.

    Adds all elements produced by a TraversableOnce to this ObservableBuffer. Overridden method to make it behave like a wrapped ObservableList.

    xs

    traversable object.

    returns

    The ObservableBuffer itself.

    Definition Classes
    ObservableBuffer → Growable
  8. def ++=:(xs: TraversableOnce[T]): ObservableBuffer.this.type

    Permalink
    Definition Classes
    BufferLike
  9. def +:[B >: T, That](elem: B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  10. def +=(elem1: T, elem2: T, elems: T*): ObservableBuffer.this.type

    Permalink

    Appends two or more elements to this ObservableBuffer.

    Appends two or more elements to this ObservableBuffer. Overridden method to make it behave like a wrapped ObservableList.

    elem1

    First element to add

    elem2

    Second element to add

    elems

    Other elements to add

    returns

    The ObservableBuffer itself.

    Definition Classes
    ObservableBuffer → Growable
  11. def +=(elem: T): ObservableBuffer.this.type

    Permalink

    Appends a single element to this ObservableBuffer.

    Appends a single element to this ObservableBuffer. Overridden method to make it behave like a wrapped ObservableList.

    elem

    the element to add.

    returns

    The ObservableBuffer itself.

    Definition Classes
    ObservableBuffer → Builder → BufferLike → Growable
  12. def +=:(elem: T): ObservableBuffer.this.type

    Permalink

    Prepends a single element to this buffer.

    Prepends a single element to this buffer. Overridden method to make it behave like a wrapped ObservableList.

    elem

    Element to prepend

    returns

    The ObservableBuffer itself.

    Definition Classes
    ObservableBuffer → BufferLike
  13. def -(elem1: T, elem2: T, elems: T*): ObservableBuffer[T]

    Permalink

    Creates a new collection with all the elements of this collection except the two or more specified elements.

    Creates a new collection with all the elements of this collection except the two or more specified elements. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    elem1

    First element to remove

    elem2

    Second element to remove

    elems

    Other elements to remove

    returns

    a new ObservableBuffer consisting of all the elements of this Buffer except elem1, elem2 and those in elems. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    Definition Classes
    ObservableBuffer → BufferLike → Subtractable
  14. def -(elem: T): ObservableBuffer[T]

    Permalink

    Creates a new ObservableBuffer with all the elements of this collection except elem.

    Creates a new ObservableBuffer with all the elements of this collection except elem. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    elem

    Element to remove

    returns

    A new ObservableBuffer consisting of all the elements of this Buffer except elem. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    Definition Classes
    ObservableBuffer → BufferLike → Subtractable
  15. def --(xs: GenTraversableOnce[T]): ObservableBuffer[T]

    Permalink

    Creates a new ObservableBuffer with all the elements of this Buffer except those provided by the specified traversable object.

    Creates a new ObservableBuffer with all the elements of this Buffer except those provided by the specified traversable object. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    xs

    The traversable object.

    returns

    A new ObservableBuffer with all the elements of this Buffer except those in xs. The new ObservableBuffer won't have Change and Invalidation Listeners from original Buffer.

    Definition Classes
    ObservableBuffer → BufferLike → Subtractable
  16. def --=(xs: TraversableOnce[T]): ObservableBuffer.this.type

    Permalink

    Removes all elements produced by an iterator from this buffer.

    Removes all elements produced by an iterator from this buffer.

    xs

    the traversable object with elements to remove.

    returns

    The ObservableBuffer itself.

    Definition Classes
    ObservableBuffer → Shrinkable
  17. def -=(elem1: T, elem2: T, elems: T*): ObservableBuffer.this.type

    Permalink

    Removes two or more elements from this ObservableBuffer.

    Removes two or more elements from this ObservableBuffer.

    elem1

    First element to remove

    elem2

    Second element to remove

    elems

    Other elements to remove

    returns

    The ObservableBuffer itself.

    Definition Classes
    ObservableBuffer → Shrinkable
  18. def -=(x: T): ObservableBuffer.this.type

    Permalink
    Definition Classes
    BufferLike → Shrinkable
  19. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  20. def :+[B >: T, That](elem: B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  21. def :+=(elem: T): ObservableBuffer[T]

    Permalink

    Appends a single element to this buffer.

    Appends a single element to this buffer. Overridden method to make it behave like a wrapped ObservableList.

    elem

    Element to append

    returns

    The ObservableBuffer itself.

  22. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  25. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  26. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  27. def aggregate[B](z: ⇒ B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  28. def andThen[C](k: (T) ⇒ C): PartialFunction[Int, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  29. def append(elems: T*): Unit

    Permalink
    Definition Classes
    BufferLike
  30. def appendAll(xs: TraversableOnce[T]): Unit

    Permalink
    Definition Classes
    BufferLike
  31. def apply(n: Int): T

    Permalink

    Selects an element by its index in the buffer.

    Selects an element by its index in the buffer.

    n

    index

    returns

    Element at position n

    Definition Classes
    ObservableBuffer → BufferLike → SeqLike → GenSeqLike → Function1
  32. def applyOrElse[A1 <: Int, B1 >: T](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  33. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  34. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  35. def clear(): Unit

    Permalink

    Clears the ObservableBuffer's contents.

    Clears the ObservableBuffer's contents. After this operation, the Buffer is empty.

    Definition Classes
    ObservableBuffer → Builder → BufferLike → Growable → Clearable
  36. def clone(): ObservableBuffer[T]

    Permalink
    Definition Classes
    BufferLike → Cloneable → AnyRef
  37. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  38. def collectFirst[B](pf: PartialFunction[T, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  39. def combinations(n: Int): Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    SeqLike
  40. def companion: GenericCompanion[ObservableBuffer]

    Permalink

    The factory companion object that builds instances of class ObservableBuffer.

    The factory companion object that builds instances of class ObservableBuffer.

    Definition Classes
    ObservableBuffer → Buffer → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  41. def compose[A](g: (A) ⇒ Int): (A) ⇒ T

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  42. def contains[A1 >: T](elem: A1): Boolean

    Permalink
    Definition Classes
    SeqLike
  43. def containsSlice[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike
  44. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  45. def copyToArray[B >: T](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  46. def copyToArray[B >: T](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  48. def corresponds[B](that: GenSeq[B])(p: (T, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  49. def count(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  50. val delegate: ObservableList[T]

    Permalink

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    ObservableBufferSFXDelegate
  51. def diff[B >: T](that: GenSeq[B]): ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  52. def distinct: ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  53. def drop(n: Int): ObservableBuffer[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  54. def dropRight(n: Int): ObservableBuffer[T]

    Permalink
    Definition Classes
    IterableLike
  55. def dropWhile(p: (T) ⇒ Boolean): ObservableBuffer[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  56. def endsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  57. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  58. def equals(ref: Any): Boolean

    Permalink

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

    if the other object is equals to this delegate or not.

    Definition Classes
    SFXDelegate → AnyRef → Any
  59. def exists(p: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  60. def filter(p: (T) ⇒ Boolean): ObservableBuffer[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  61. def filterNot(p: (T) ⇒ Boolean): ObservableBuffer[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  62. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  63. def find(p: (T) ⇒ Boolean): Option[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  64. def flatMap[B, That](f: (T) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  65. def flatten[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): ObservableBuffer[B]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  66. def fold[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  69. def forall(p: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  70. def foreach[U](f: (T) ⇒ U): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  71. def genericBuilder[B]: Builder[B, ObservableBuffer[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  72. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  73. def groupBy[K](f: (T) ⇒ K): Map[K, ObservableBuffer[T]]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  74. def grouped(size: Int): Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    IterableLike
  75. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  76. def hashCode(): Int

    Permalink

    returns

    The delegate hashcode

    Definition Classes
    SFXDelegate → AnyRef → Any
  77. def head: T

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  78. def headOption: Option[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  79. def indexOf[B >: T](elem: B, from: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  80. def indexOf[B >: T](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  81. def indexOfSlice[B >: T](that: GenSeq[B], from: Int): Int

    Permalink
    Definition Classes
    SeqLike
  82. def indexOfSlice[B >: T](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  83. def indexWhere(p: (T) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  84. def indexWhere(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  85. def indices: Range

    Permalink
    Definition Classes
    SeqLike
  86. def init: ObservableBuffer[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  87. def inits: Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    TraversableLike
  88. def insert(n: Int, elems: T*): Unit

    Permalink
    Definition Classes
    BufferLike
  89. def insertAll(n: Int, elems: Traversable[T]): Unit

    Permalink

    Inserts new elements at a given index into this Buffer.

    Inserts new elements at a given index into this Buffer.

    n

    the index where new elements are inserted.

    elems

    the traversable collection containing the elements to insert.

    Definition Classes
    ObservableBuffer → BufferLike
  90. def intersect[B >: T](that: GenSeq[B]): ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  91. def isDefinedAt(idx: Int): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  92. def isEmpty: Boolean

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  93. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  94. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  95. def iterator: Iterator[T]

    Permalink

    Creates a new Iterator.

    Creates a new Iterator.

    Definition Classes
    ObservableBuffer → IterableLike → GenIterableLike
  96. def last: T

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  97. def lastIndexOf[B >: T](elem: B, end: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  98. def lastIndexOf[B >: T](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  99. def lastIndexOfSlice[B >: T](that: GenSeq[B], end: Int): Int

    Permalink
    Definition Classes
    SeqLike
  100. def lastIndexOfSlice[B >: T](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  101. def lastIndexWhere(p: (T) ⇒ Boolean, end: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  102. def lastIndexWhere(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  103. def lastOption: Option[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  104. def length: Int

    Permalink

    Length of this ObservableBuffer.

    Length of this ObservableBuffer.

    Definition Classes
    ObservableBuffer → BufferLike → SeqLike → GenSeqLike
  105. def lengthCompare(len: Int): Int

    Permalink
    Definition Classes
    SeqLike
  106. def lift: (Int) ⇒ Option[T]

    Permalink
    Definition Classes
    PartialFunction
  107. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  108. def mapResult[NewTo](f: (ObservableBuffer[T]) ⇒ NewTo): Builder[T, NewTo]

    Permalink
    Definition Classes
    Builder
  109. def max[B >: T](implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def min[B >: T](implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  117. def newBuilder: Builder[T, ObservableBuffer[T]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  118. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  119. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  121. def onChange[T1 >: T](op: ⇒ Unit): Subscription

    Permalink

    Add a listener function to list's changes.

    Add a listener function to list's changes. This function will not handle this buffer's modifications data.

    op

    No-argument function to be activated when some change in this ObservableBuffer was made.

    returns

    A subscription object

  122. def onChange[T1 >: T](op: (ObservableBuffer[T], Seq[Change[T1]]) ⇒ Unit): Subscription

    Permalink

    Add a listener function to list's changes.

    Add a listener function to list's changes. This function will handle this buffer's modifications data.

    op

    Function that will handle this ObservableBuffer's modifications data to be activated when some change was made.

    returns

    A subscription object

  123. def onInvalidate(op: ⇒ Unit): Subscription

    Permalink

    Adds a no argument function as a JavaFX InvalidationListener.

    Adds a no argument function as a JavaFX InvalidationListener. This function has no arguments because it will not handle invalidated values.

    op

    A Function with no arguments. It will be called when value was invalidated.

    returns

    A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

    Definition Classes
    Observable
  124. def onInvalidate(op: (Observable) ⇒ Unit): Subscription

    Permalink

    Adds a function as a JavaFX InvalidationListener.

    Adds a function as a JavaFX InvalidationListener. This function has all arguments from invalidated method from InvalidationListener.

    op

    Function that receives a ScalaFX Observable. It will be called when value was invalidated.

    returns

    A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

    Definition Classes
    Observable
  125. def orElse[A1 <: Int, B1 >: T](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  126. def padTo[B >: T, That](len: Int, elem: B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  127. def par: ParSeq[T]

    Permalink
    Definition Classes
    Parallelizable
  128. def parCombiner: Combiner[T, ParSeq[T]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → SeqLike → TraversableLike → Parallelizable
  129. def partition(p: (T) ⇒ Boolean): (ObservableBuffer[T], ObservableBuffer[T])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  130. def patch[B >: T, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  131. def permutations: Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    SeqLike
  132. def prefixLength(p: (T) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  133. def prepend(elems: T*): Unit

    Permalink
    Definition Classes
    BufferLike
  134. def prependAll(xs: TraversableOnce[T]): Unit

    Permalink
    Definition Classes
    BufferLike
  135. def product[B >: T](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  136. def reduce[A1 >: T](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  137. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  138. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  139. def reduceOption[A1 >: T](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  140. def reduceRight[B >: T](op: (T, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  141. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  142. def remove(n: Int, count: Int): Unit

    Permalink

    Removes a number of elements from a given index position.

    Removes a number of elements from a given index position. Overridden method to make it behave like a wrapped ObservableList.

    Note: This method conflicts with method with same signature in ObservableList. There the arguments indicate a range of index of elements to be removed. Here the arguments indicate the first index of range and the quantity of elements to be removed. If you want a functionality equivalent to JavaFX ObservableList, use removeRange.

    n

    the index which refers to the first element to remove.

    count

    the number of elements to remove.

    Definition Classes
    ObservableBuffer → BufferLike
  143. def remove(n: Int): T

    Permalink

    Removes the element at a given index from this ObservableBuffer.

    Removes the element at a given index from this ObservableBuffer.

    n

    index the index of the element to be removed

    returns

    Removed element

    Definition Classes
    ObservableBuffer → BufferLike
  144. def removeRange(from: Int, to: Int): Unit

    Permalink

    Remove a range of elements.

    Remove a range of elements. Use this method if you want a functionality such as the method with same signature in ObservableList.

    from

    the start of the range to remove (inclusive)

    to

    the end of the range to remove (exclusive)

  145. def replaceAll(oldVal: T, newVal: T): Boolean

    Permalink

    Replace all oldVal elements in the list with newVal element.

    Replace all oldVal elements in the list with newVal element. Fires only one change notification on the list.

    oldVal

    The element that is going to be replace

    newVal

    The replacement

    returns

    true if the list was modified

  146. def repr: ObservableBuffer[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  147. def result(): ObservableBuffer[T]

    Permalink

    Produces an ObservableBuffer from the added elements.

    Produces an ObservableBuffer from the added elements.

    Definition Classes
    ObservableBuffer → Builder
  148. def retainAll(elems: Iterable[T]): Unit

    Permalink

    Retains only the elements in this list that are contained in the specified collection.

    Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all the elements that are not contained in the specified collection.

    elems

    the traversable collection containing elements to be retained in this list

  149. def retainAll(elems: T*): Unit

    Permalink

    Retains only the elements in this list that are contained in the specified collection.

    Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all the elements that are not contained in the specified collection.

    elems

    the traversable collection containing elements to be retained in this list

  150. def reverse: ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  151. def reverseIterator: Iterator[T]

    Permalink
    Definition Classes
    SeqLike
  152. def reverseMap[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  153. def reversed: List[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  154. def runWith[U](action: (T) ⇒ U): (Int) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  155. def sameElements[B >: T](that: GenIterable[B]): Boolean

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  156. def scan[B >: T, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  157. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  158. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  159. def segmentLength(p: (T) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  160. def seq: Seq[T]

    Permalink
    Definition Classes
    Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  161. def size: Int

    Permalink
    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  162. def sizeHint(coll: TraversableLike[_, _], delta: Int): Unit

    Permalink
    Definition Classes
    Builder
  163. def sizeHint(coll: TraversableLike[_, _]): Unit

    Permalink
    Definition Classes
    Builder
  164. def sizeHint(size: Int): Unit

    Permalink
    Definition Classes
    Builder
  165. def sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit

    Permalink
    Definition Classes
    Builder
  166. def slice(from: Int, until: Int): ObservableBuffer[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  167. def sliding(size: Int, step: Int): Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    IterableLike
  168. def sliding(size: Int): Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    IterableLike
  169. def sort(lt: (T, T) ⇒ Boolean): Unit

    Permalink

    Sorts this ObservableBuffer using a Comparator function

    Sorts this ObservableBuffer using a Comparator function

    lt

    Comparator function that returns true if first element was lesser than second or false otherwise.

  170. def sort()(implicit typeTag: scala.reflect.api.JavaUniverse.WeakTypeTag[T]): Unit

    Permalink

    Sorts this ObservableBuffer if its type implements natural ordering.

    Sorts this ObservableBuffer if its type implements natural ordering. This type must be a java.util.Comparable subclass. Otherwise it will throws a IllegalStateException.

    typeTag

    information about if this type is a Comparable subclass or not.

  171. def sortBy[B](f: (T) ⇒ B)(implicit ord: Ordering[B]): ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike
  172. def sortWith(lt: (T, T) ⇒ Boolean): ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike
  173. def sorted[B >: T](implicit ord: Ordering[B]): ObservableBuffer[T]

    Permalink
    Definition Classes
    SeqLike
  174. def span(p: (T) ⇒ Boolean): (ObservableBuffer[T], ObservableBuffer[T])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  175. def splitAt(n: Int): (ObservableBuffer[T], ObservableBuffer[T])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  176. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  177. def startsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  178. def stringPrefix: String

    Permalink
    Definition Classes
    BufferLike → TraversableLike → GenTraversableLike
  179. def sum[B >: T](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  180. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  181. def tail: ObservableBuffer[T]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  182. def tails: Iterator[ObservableBuffer[T]]

    Permalink
    Definition Classes
    TraversableLike
  183. def take(n: Int): ObservableBuffer[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  184. def takeRight(n: Int): ObservableBuffer[T]

    Permalink
    Definition Classes
    IterableLike
  185. def takeWhile(p: (T) ⇒ Boolean): ObservableBuffer[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  186. def thisCollection: Seq[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  187. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  188. def toArray[B >: T](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  189. def toBuffer[B >: T]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  190. def toCollection(repr: ObservableBuffer[T]): Seq[T]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  191. def toIndexedSeq: IndexedSeq[T]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  192. def toIterable: Iterable[T]

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  193. def toIterator: Iterator[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  194. def toList: List[T]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  195. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  196. def toSeq: Seq[T]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  197. def toSet[B >: T]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  198. def toStream: Stream[T]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  199. def toString(): String

    Permalink

    returns

    Returns the original delegate's toString() adding a [SFX] prefix.

    Definition Classes
    SFXDelegate → AnyRef → Any
  200. def toTraversable: Traversable[T]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  201. def toVector: Vector[T]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  202. def transform(f: (T) ⇒ T): ObservableBuffer.this.type

    Permalink
    Definition Classes
    SeqLike
  203. def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): ObservableBuffer[ObservableBuffer[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  204. def trimEnd(n: Int): Unit

    Permalink
    Definition Classes
    BufferLike
  205. def trimStart(n: Int): Unit

    Permalink
    Definition Classes
    BufferLike
  206. def union[B >: T, That](that: GenSeq[B])(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  207. def unzip[A1, A2](implicit asPair: (T) ⇒ (A1, A2)): (ObservableBuffer[A1], ObservableBuffer[A2])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  208. def unzip3[A1, A2, A3](implicit asTriple: (T) ⇒ (A1, A2, A3)): (ObservableBuffer[A1], ObservableBuffer[A2], ObservableBuffer[A3])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  209. def update(n: Int, newelem: T): Unit

    Permalink

    Replaces element at given index with a new value.

    Replaces element at given index with a new value.

    n

    the index of the element to replace.

    newelem

    new value to be positioned at position n.

    Definition Classes
    ObservableBuffer → BufferLike → SeqLike
  210. def updated[B >: T, That](index: Int, elem: B)(implicit bf: CanBuildFrom[ObservableBuffer[T], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  211. def view(from: Int, until: Int): SeqView[T, ObservableBuffer[T]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  212. def view: SeqView[T, ObservableBuffer[T]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  213. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  216. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, ObservableBuffer[T]]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  217. def zip[A1 >: T, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[ObservableBuffer[T], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  218. def zipAll[B, A1 >: T, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[ObservableBuffer[T], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  219. def zipWithIndex[A1 >: T, That](implicit bf: CanBuildFrom[ObservableBuffer[T], (A1, Int), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def <<(cmd: Message[T]): Unit

    Permalink
    Definition Classes
    BufferLike → Scriptable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Scripting is deprecated.

  2. def readOnly: Seq[T]

    Permalink
    Definition Classes
    BufferLike
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) The returned sequence changes as this buffer is mutated. For an immutable copy, use, e.g., toList.

Inherited from Observable

Inherited from SFXDelegate[ObservableList[T]]

Inherited from Builder[T, ObservableBuffer[T]]

Inherited from Buffer[T]

Inherited from BufferLike[T, ObservableBuffer[T]]

Inherited from Subtractable[T, ObservableBuffer[T]]

Inherited from Scriptable[T]

Inherited from Shrinkable[T]

Inherited from Growable[T]

Inherited from Clearable

Inherited from Seq[T]

Inherited from SeqLike[T, ObservableBuffer[T]]

Inherited from Cloneable[ObservableBuffer[T]]

Inherited from Cloneable

Inherited from Cloneable

Inherited from Seq[T]

Inherited from SeqLike[T, ObservableBuffer[T]]

Inherited from GenSeq[T]

Inherited from GenSeqLike[T, ObservableBuffer[T]]

Inherited from PartialFunction[Int, T]

Inherited from (Int) ⇒ T

Inherited from Iterable[T]

Inherited from Iterable[T]

Inherited from IterableLike[T, ObservableBuffer[T]]

Inherited from Equals

Inherited from GenIterable[T]

Inherited from GenIterableLike[T, ObservableBuffer[T]]

Inherited from Traversable[T]

Inherited from Mutable

Inherited from Traversable[T]

Inherited from GenTraversable[T]

Inherited from TraversableLike[T, ObservableBuffer[T]]

Inherited from GenTraversableLike[T, ObservableBuffer[T]]

Inherited from Parallelizable[T, ParSeq[T]]

Inherited from TraversableOnce[T]

Inherited from GenTraversableOnce[T]

Inherited from FilterMonadic[T, ObservableBuffer[T]]

Inherited from HasNewBuilder[T, ObservableBuffer[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped