Object/Class

scalafx.collections

ObservableBuffer

Related Docs: class ObservableBuffer | package collections

Permalink

object ObservableBuffer extends SeqFactory[ObservableBuffer]

Companion Object for scalafx.collections.ObservableBuffer.

Source
ObservableBuffer.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableBuffer
  2. SeqFactory
  3. TraversableFactory
  4. GenericSeqCompanion
  5. GenSeqFactory
  6. GenTraversableFactory
  7. GenericCompanion
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Add[T](position: Int, added: Traversable[T]) extends Change[T] with Product with Serializable

    Permalink

    Indicates an Addition in an ObservableBuffer.

    Indicates an Addition in an ObservableBuffer.

    position

    Position from where new elements were added

    added

    elements added

    See also

    ListChangeListener.Change.getAddedSubList()

    ListChangeListener.Change.getFrom()

    ListChangeListener.Change.wasAdded()

  2. sealed trait Change[T] extends AnyRef

    Permalink

    Trait that indicates a Change in an ObservableBuffer.

    Trait that indicates a Change in an ObservableBuffer. It is a simpler version of JavaFX's ListChangeListener.Change, where each subclass indicates a specific change operation. Unlike JavaFX, all subclasses are exclusive to each other. This enables using pattern matching:

    items.onChange((_, changes) => {
      for (change <- changes)
        change match {
          case Add(pos, added)                => ...
          case Remove(pos, removed)           => ...
          case Reorder(from, to, permutation) => ...
          case Update(pos, updated)           => ...
        }
    })

    "replace" is represented as two changes Remove and Add.

  3. type Coll = ObservableBuffer[_]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenericCompanion
  4. class GenericCanBuildFrom[A] extends CanBuildFrom[CC[_], A, CC[A]]

    Permalink
    Definition Classes
    GenTraversableFactory
  5. case class Remove[T](position: Int, removed: Traversable[T]) extends Change[T] with Product with Serializable

    Permalink

    Indicates a Removal in an ObservableBuffer.

    Indicates a Removal in an ObservableBuffer.

    position

    Position from where elements were removed

    removed

    elements removed

    See also

    ListChangeListener.Change.getRemoved()

    ListChangeListener.Change.getFrom()

    ListChangeListener.Change.wasRemoved()

  6. case class Reorder[T](start: Int, end: Int, permutation: (Int) ⇒ Int) extends Change[T] with Product with Serializable

    Permalink

    Indicates a Reordering in an ObservableBuffer.

    Indicates a Reordering in an ObservableBuffer.

    start

    The start of the change interval.

    end

    The end of the change interval.

    permutation

    Function that indicates the permutation that happened. The argument indicates the old index that contained the element prior to this change. Its return is the new index of the same element.

    See also

    ListChangeListener.Change.getPermutation(int)

    ListChangeListener.Change.getTo()

    ListChangeListener.Change.getFrom()

    ListChangeListener.Change.wasPermutated()

  7. case class Update[T](from: Int, to: Int) extends Change[T] with Product with Serializable

    Permalink

    Indicates an Update in an ObservableBuffer.

    Indicates an Update in an ObservableBuffer.

    from

    Position from where elements were updated

    to

    Position to where elements were updated (exclusive)

    See also

    ListChangeListener.Change.getTo()

    ListChangeListener.Change.getFrom()

    ListChangeListener.Change.wasUpdated()

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 ReusableCBF: GenericCanBuildFrom[Nothing]

    Permalink
    Definition Classes
    GenTraversableFactory
  5. def apply[T](items: Seq[T]): ObservableBuffer[T]

    Permalink

    Creates a new ObservableBuffer from a sequence of elements.

    Creates a new ObservableBuffer from a sequence of elements.

    items

    Sequence of elements

    returns

    new ObservableBuffer from items

  6. def apply[A](elems: A*): ObservableBuffer[A]

    Permalink
    Definition Classes
    GenericCompanion
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. implicit def canBuildFrom[T]: CanBuildFrom[Coll, T, ObservableBuffer[T]]

    Permalink

    The standard CanBuildFrom instance for ObservableBuffer objects.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def concat[T](buffers: ObservableBuffer[T]*): ObservableBuffer[T]

    Permalink

    Concatenates more ObservableBuffer's into one.

    Concatenates more ObservableBuffer's into one.

    buffers

    Buffer to concatenate

  11. def concat[A](xss: Traversable[A]*): ObservableBuffer[A]

    Permalink
    Definition Classes
    GenTraversableFactory
  12. def empty[A]: ObservableBuffer[A]

    Permalink
    Definition Classes
    GenericCompanion
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def fill[A](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(elem: ⇒ A): ObservableBuffer[ObservableBuffer[ObservableBuffer[ObservableBuffer[ObservableBuffer[A]]]]]

    Permalink
    Definition Classes
    GenTraversableFactory
  16. def fill[A](n1: Int, n2: Int, n3: Int, n4: Int)(elem: ⇒ A): ObservableBuffer[ObservableBuffer[ObservableBuffer[ObservableBuffer[A]]]]

    Permalink
    Definition Classes
    GenTraversableFactory
  17. def fill[A](n1: Int, n2: Int, n3: Int)(elem: ⇒ A): ObservableBuffer[ObservableBuffer[ObservableBuffer[A]]]

    Permalink
    Definition Classes
    GenTraversableFactory
  18. def fill[A](n1: Int, n2: Int)(elem: ⇒ A): ObservableBuffer[ObservableBuffer[A]]

    Permalink
    Definition Classes
    GenTraversableFactory
  19. def fill[A](n: Int)(elem: ⇒ A): ObservableBuffer[A]

    Permalink
    Definition Classes
    GenTraversableFactory
  20. def fillAll[T](buffer: ObservableBuffer[T], obj: T): Unit

    Permalink

    Fills the provided Buffer with obj.

    Fills the provided Buffer with obj. Fires only one change notification on the Buffer.

    buffer

    Buffer to Fill

    obj

    the object to fill the Buffer with

  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def iterate[A](start: A, len: Int)(f: (A) ⇒ A): ObservableBuffer[A]

    Permalink
    Definition Classes
    GenTraversableFactory
  26. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    The default builder for ObservableBuffer objects.

    The default builder for ObservableBuffer objects.

    Definition Classes
    ObservableBuffer → GenericCompanion
  28. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. implicit def observableBuffer2ObservableList[T](ob: ObservableBuffer[T]): ObservableList[T]

    Permalink

    Extracts an ObservableList from an ObservableBuffer.

    Extracts an ObservableList from an ObservableBuffer.

    ob

    ObservableBuffer

  31. def range[T](start: T, end: T, step: T)(implicit arg0: Integral[T]): ObservableBuffer[T]

    Permalink
    Definition Classes
    GenTraversableFactory
  32. def range[T](start: T, end: T)(implicit arg0: Integral[T]): ObservableBuffer[T]

    Permalink
    Definition Classes
    GenTraversableFactory
  33. def revertBuffer[T](buffer: ObservableBuffer[T]): Unit

    Permalink

    Revert the order in the ObservableBuffer.

    Revert the order in the ObservableBuffer. Fires only one change notification on the list.

    Implementation note: This method uses reverse method from javafx.collections.FXCollections. It is not called reverse to not confuse with method with same name from scala.collection.mutable.Buffer

    buffer

    Buffer to be reverted.

  34. def rotate[T](buffer: ObservableBuffer[T], distance: Int): Unit

    Permalink

    Rotates the Buffer by distance.

    Rotates the Buffer by distance. Fires only one change notification on the Buffer.

    buffer

    the Buffer to be rotated

    distance

    the distance of rotation

  35. def shuffle[T](buffer: ObservableBuffer[T], rnd: Random): Unit

    Permalink

    Shuffles all elements in the ObservableBuffer.

    Shuffles all elements in the ObservableBuffer. Fires only one change notification on the Buffer.

    buffer

    Buffer to be shuffled

    rnd

    the random generator used for shuffling

  36. def shuffle[T](buffer: ObservableBuffer[T]): Unit

    Permalink

    Shuffles all elements in the ObservableBuffer.

    Shuffles all elements in the ObservableBuffer. Fires only one change notification on the Buffer.

    buffer

    Buffer to be shuffled

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def tabulate[A](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(f: (Int, Int, Int, Int, Int) ⇒ A): ObservableBuffer[ObservableBuffer[ObservableBuffer[ObservableBuffer[ObservableBuffer[A]]]]]

    Permalink
    Definition Classes
    GenTraversableFactory
  39. def tabulate[A](n1: Int, n2: Int, n3: Int, n4: Int)(f: (Int, Int, Int, Int) ⇒ A): ObservableBuffer[ObservableBuffer[ObservableBuffer[ObservableBuffer[A]]]]

    Permalink
    Definition Classes
    GenTraversableFactory
  40. def tabulate[A](n1: Int, n2: Int, n3: Int)(f: (Int, Int, Int) ⇒ A): ObservableBuffer[ObservableBuffer[ObservableBuffer[A]]]

    Permalink
    Definition Classes
    GenTraversableFactory
  41. def tabulate[A](n1: Int, n2: Int)(f: (Int, Int) ⇒ A): ObservableBuffer[ObservableBuffer[A]]

    Permalink
    Definition Classes
    GenTraversableFactory
  42. def tabulate[A](n: Int)(f: (Int) ⇒ A): ObservableBuffer[A]

    Permalink
    Definition Classes
    GenTraversableFactory
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def unapplySeq[A](x: ObservableBuffer[A]): Some[ObservableBuffer[A]]

    Permalink
    Definition Classes
    SeqFactory
  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 SeqFactory[ObservableBuffer]

Inherited from AnyRef

Inherited from Any

Ungrouped