Companion Object for scalafx.collections.ObservableBuffer.
Companion Object for scalafx.collections.ObservableBuffer.
- Companion
- class
Type members
Classlikes
Indicates an Addition in an ObservableBuffer
.
Indicates an Addition in an ObservableBuffer
.
- Value Params
- added
elements added
- position
Position from where new elements were added
- See also
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:
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
.
- Value Params
- position
Position from where elements were removed
- removed
elements removed
- See also
Indicates a Reordering in an ObservableBuffer
.
Indicates a Reordering in an ObservableBuffer
.
- Value Params
- 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.
- start
The start of the change interval.
- See also
Value members
Concrete methods
Fills the provided Buffer
with obj. Fires only one change notification on the Buffer
.
Fills the provided Buffer
with obj. Fires only one change notification on the Buffer
.
- Value Params
- buffer
Buffer
to Fill- obj
the object to fill the
Buffer
with
Revert the order in the ObservableBuffer
. Fires only '''one''' change notification on the list.
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
- Value Params
- buffer
Buffer
to be reverted.
Rotates the Buffer
by distance. Fires only one change notification on the Buffer
.
Rotates the Buffer
by distance. Fires only one change notification on the Buffer
.
- Value Params
- buffer
the
Buffer
to be rotated- distance
the distance of rotation
Shuffles all elements in the ObservableBuffer
. Fires only '''one''' change notification on the Buffer
.
Shuffles all elements in the ObservableBuffer
. Fires only '''one''' change notification on the Buffer
.
- Value Params
- buffer
Buffer to be shuffled
Inherited methods
- Definition Classes
- StrictOptimizedSeqFactory -> IterableFactory
- Inherited from
- StrictOptimizedSeqFactory
- Definition Classes
- StrictOptimizedSeqFactory -> IterableFactory
- Inherited from
- StrictOptimizedSeqFactory
- Inherited from
- IterableFactory
- Inherited from
- IterableFactory
- Inherited from
- IterableFactory
- Definition Classes
- StrictOptimizedSeqFactory -> IterableFactory
- Inherited from
- StrictOptimizedSeqFactory
- Inherited from
- IterableFactory
- Inherited from
- IterableFactory
- Inherited from
- IterableFactory
Implicits
Implicits
Extracts an `ObservableList` from an ObservableBuffer
.
Extracts an `ObservableList` from an ObservableBuffer
.
- Value Params
- ob
ObservableBuffer