Companion Object for scalafx.collections.ObservableBuffer.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait SeqFactory[ObservableBuffer]trait IterableFactory[ObservableBuffer]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ObservableBuffer.type
Members list
Type members
Classlikes
Indicates an Addition in an ObservableBuffer
.
Indicates an Addition in an ObservableBuffer
.
Value parameters
- added
-
elements added
- position
-
Position from where new elements were added
Attributes
- See also
- Supertypes
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
.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Indicates a Removal in an ObservableBuffer
.
Indicates a Removal in an ObservableBuffer
.
Value parameters
- position
-
Position from where elements were removed
- removed
-
elements removed
Attributes
- See also
- Supertypes
Indicates a Reordering in an ObservableBuffer
.
Indicates a Reordering in an ObservableBuffer
.
Value parameters
- 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.
Attributes
- See also
- Supertypes
Indicates an Update in an ObservableBuffer
.
Indicates an Update in an ObservableBuffer
.
Value parameters
- from
-
Position from where elements were updated
- to
-
Position to where elements were updated (exclusive)
Attributes
- See also
- Supertypes
Value members
Concrete methods
Attributes
- Definition Classes
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 parameters
- buffer
-
Buffer
to Fill - obj
-
the object to fill the
Buffer
with
Attributes
Attributes
- Definition Classes
Attributes
- Definition Classes
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 parameters
- buffer
-
Buffer
to be reverted.
Attributes
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 parameters
- buffer
-
the
Buffer
to be rotated - distance
-
the distance of rotation
Attributes
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 parameters
- buffer
-
Buffer to be shuffled
Attributes
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 parameters
- buffer
-
Buffer to be shuffled
- rnd
-
the random generator used for shuffling
Attributes
Inherited methods
Attributes
- Inherited from:
- IterableFactory
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqFactory
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- IterableFactory
Attributes
- Inherited from:
- SeqFactory
Implicits
Implicits
Extracts an `ObservableList` from an ObservableBuffer
.
Extracts an `ObservableList` from an ObservableBuffer
.
Value parameters
- ob
-
ObservableBuffer
Attributes
Inherited implicits
Attributes
- Inherited from:
- IterableFactory