Indicates an Addition in an ObservableBuffer.
Indicates an Addition in an ObservableBuffer.
Position from where new elements were added
elements added
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.
Indicates a Removal in an ObservableBuffer.
Indicates a Removal in an ObservableBuffer.
Position from where elements were removed
elements removed
Indicates a Reordering in an ObservableBuffer.
Indicates a Reordering in an ObservableBuffer.
The start of the change interval.
The end of the change interval.
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.
Indicates an Update in an ObservableBuffer.
Indicates an Update in an ObservableBuffer.
Position from where elements were updated
Position to where elements were updated (exclusive)
Creates a new ObservableBuffer from a sequence of elements.
Creates a new ObservableBuffer from a sequence of elements.
Sequence of elements
new ObservableBuffer from items
The standard CanBuildFrom instance for ObservableBuffer objects.
Concatenates more ObservableBuffer's into one.
Concatenates more ObservableBuffer's into one.
Buffer to concatenate
Fills the provided Buffer with obj.
Fills the provided Buffer with obj. Fires only one change notification on the Buffer.
Buffer to Fill
the object to fill the Buffer with
The default builder for ObservableBuffer objects.
The default builder for ObservableBuffer objects.
Extracts an ObservableList from an ObservableBuffer.
Extracts an ObservableList from an ObservableBuffer.
ObservableBuffer
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 to be reverted.
Rotates the Buffer by distance.
Rotates the Buffer by distance. Fires only one change notification on the Buffer.
the Buffer to be rotated
the distance of rotation
Shuffles all elements in the ObservableBuffer.
Shuffles all elements in the ObservableBuffer. Fires only one change notification on the Buffer.
Buffer to be shuffled
the random generator used for shuffling
Shuffles all elements in the ObservableBuffer.
Shuffles all elements in the ObservableBuffer. Fires only one change notification on the Buffer.
Buffer to be shuffled
Companion Object for scalafx.collections.ObservableBuffer.