scalafx.collections

ObservableBuffer

Related Docs: class ObservableBuffer | package collections

object ObservableBuffer extends SeqFactory[ObservableBuffer]

Companion Object for scalafx.collections.ObservableBuffer.

Source
ObservableBuffer.scala
Linear Supertypes
Content Hierarchy Learn more about scaladoc diagrams
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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

    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 extends AnyRef

    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 subcalsses 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[_]

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

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

    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(start: Int, end: Int, permutation: (Int) ⇒ Int) extends Change with Product with Serializable

    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 thst 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 with Product with Serializable

    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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def ReusableCBF: GenericCanBuildFrom[Nothing]

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

    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]

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

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

    The standard CanBuildFrom instance for ObservableBuffer objects.

  9. def clone(): AnyRef

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

    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]

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

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

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

    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]]]]]

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

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

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

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

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

    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

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

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

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

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

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

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

    The default builder for ObservableBuffer objects.

    The default builder for ObservableBuffer objects.

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

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

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

    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]

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

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

    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

    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

    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

    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

    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]]]]]

    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]]]]

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

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

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

    Definition Classes
    GenTraversableFactory
  43. def toString(): String

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

    Definition Classes
    SeqFactory
  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SeqFactory[ObservableBuffer]

Inherited from AnyRef

Inherited from Any

Ungrouped