There is no need in ScalaFX to use this class. ObservableListBase
is really an implementation detail of JavaFX, that is added in ScalaFX as ObservableBufferBase
to keep type hierarchies in scalafx.collections.transformation
correct. Note that Buffer
is used instead of Java List
, since it is a closer equivalent to java List
than Scala List
(Java and Scala List
are quite different). There should be bo need to use this class from ScalaFX. On JavaFX side this is an abstract class that serves as a base class for ObservableList implementations that wa added in JavFX 8. In ScalaFX 8 the implementation is actually in ObservableBuffer.
Wraps a JavaFX $URL0 $TC]].
Type parameters
- E
-
- the type of the elements contained in the List
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class ObservableBuffer[E]trait Observabletrait IndexedBuffer[E]trait IndexedSeq[E]trait IndexedSeq[E]class AbstractBuffer[E]trait Buffer[E]trait Shrinkable[E]trait Growable[E]trait Clearableclass AbstractSeq[E]trait Seq[E]trait Cloneabletrait Iterable[E]class AbstractSeq[E]trait Seq[E]trait Equalsclass AbstractIterable[E]trait Iterable[E]trait IterableOnce[E]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- Growable
Attributes
- Inherited from:
- Buffer
Creates a new ObservableBuffer
with all the elements of this collection except elem
. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
Creates a new ObservableBuffer
with all the elements of this collection except elem
. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
Value parameters
- elem
-
Element to remove
Attributes
- Returns
-
A new
ObservableBuffer
consisting of all the elements of thisBuffer
exceptelem
. The newObservableBuffer
won't have Change and Invalidation Listeners from originalBuffer
. - Inherited from:
- ObservableBuffer
Creates a new ObservableBuffer
with all the elements of this Buffer
except those provided by the specified iterable object. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
Creates a new ObservableBuffer
with all the elements of this Buffer
except those provided by the specified iterable object. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
Value parameters
- xs
-
The iterable object.
Attributes
- Returns
-
A new
ObservableBuffer
with all the elements of thisBuffer
except those inxs
. The newObservableBuffer
won't have Change and Invalidation Listeners from originalBuffer
. - Inherited from:
- ObservableBuffer
Attributes
- Inherited from:
- Shrinkable
Attributes
- Inherited from:
- Shrinkable
A convenience method for var-arg addition of elements.
A convenience method for var-arg addition of elements.
Value parameters
- elem
-
elements the elements to add
Attributes
- Returns
-
The
ObservableBuffer
itself. - Inherited from:
- ObservableBuffer
Adds all elements produced by a IterableOnce to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
Adds all elements produced by a IterableOnce to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
Value parameters
- xs
-
iterable object.
Attributes
- Returns
-
The
ObservableBuffer
itself. - Definition Classes
- Inherited from:
- ObservableBuffer
Appends a single element to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
Appends a single element to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
Value parameters
- elem
-
the element to add.
Attributes
- Returns
-
The
ObservableBuffer
itself. - Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Selects an element by its index in the buffer.
Selects an element by its index in the buffer.
Value parameters
- n
-
index
Attributes
- Returns
-
Element at position
n
- Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Inherited from:
- PartialFunction
Clears the ObservableBuffer
's contents. After this operation, the Buffer
is empty.
Clears the ObservableBuffer
's contents. After this operation, the Buffer
is empty.
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Create a copy of the receiver object.
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- Buffer
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Buffer
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- IterableFactoryDefaults
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
Value parameters
- ref
-
Object to be compared.
Attributes
- Returns
-
if the other object is equals to this delegate or not.
- Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IndexedBuffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IndexedBuffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Returns
-
The delegate hashcode
- Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Inserts new elements at a given index into this Buffer
.
Inserts new elements at a given index into this Buffer
.
Value parameters
- elems
-
the iterable collection containing the elements to insert.
- n
-
the index where new elements are inserted.
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Creates a new `Iterator`.
The number of elements in this collection.
The number of elements in this collection.
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOps
Length of this ObservableBuffer
.
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Add a listener function to list's changes. This function '''will not handle''' this buffer's modifications data.
Add a listener function to list's changes. This function '''will not handle''' this buffer's modifications data.
Value parameters
- op
-
No-argument function to be activated when some change in this
ObservableBuffer
was made.
Attributes
- Returns
-
A
subscription
object - Inherited from:
- ObservableBuffer
Add a listener function to list's changes. This function '''will handle''' this buffer's modifications data.
Add a listener function to list's changes. This function '''will handle''' this buffer's modifications data.
Value parameters
- op
-
Function that will handle this
ObservableBuffer
's modifications data to be activated when some change was made.
Attributes
- Returns
-
A subscription object
- Inherited from:
- ObservableBuffer
Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.
Adds a no argument function as a JavaFX `InvalidationListener`. This function has no arguments because it will not handle invalidated values.
Value parameters
- op
-
A Function with no arguments. It will be called when value was invalidated.
Attributes
- Returns
-
A new scalafx.event.subscriptions.Subscription to remove JavaFX
InvalidationListener
. - Inherited from:
- Observable
Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener
.
Adds a function as a JavaFX `InvalidationListener`. This function has all arguments from `invalidated` method from InvalidationListener
.
Value parameters
- op
-
Function that receives a ScalaFX
Observable
. It will be called when value was invalidated.
Attributes
- Returns
-
A new scalafx.event.subscriptions.Subscription to remove JavaFX
InvalidationListener
. - Inherited from:
- Observable
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IndexedBuffer
Attributes
- Inherited from:
- SeqOps
Prepends a single element to this buffer. Overridden method to make it behave like a wrapped ObservableList
.
Prepends a single element to this buffer. Overridden method to make it behave like a wrapped ObservableList
.
Value parameters
- elem
-
Element to prepend
Attributes
- Returns
-
The
ObservableBuffer
itself. - Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Removes a number of elements from a given index position. Overridden method to make it behave like a wrapped ObservableList
.
Removes a number of elements from a given index position. Overridden method to make it behave like a wrapped ObservableList
.
'''Note''': This method conflicts with method with same signature in `ObservableList`. There the arguments indicate a range of index of elements to be removed. Here the arguments indicate the first index of range and the quantity of elements to be removed. If you want a functionality equivalent to JavaFX ObservableList
, use removeRange
.
Value parameters
- count
-
the number of elements to remove.
- n
-
the index which refers to the first element to remove.
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Removes the element at a given index from this ObservableBuffer
.
Removes the element at a given index from this ObservableBuffer
.
Value parameters
- n
-
index the index of the element to be removed
Attributes
- Returns
-
Removed element
- Definition Classes
- Inherited from:
- ObservableBuffer
Remove a range of elements. Use this method if you want a functionality such as the method with same signature in ObservableList
.
Remove a range of elements. Use this method if you want a functionality such as the method with same signature in ObservableList
.
Value parameters
- from
-
the start of the range to remove (inclusive)
- to
-
the end of the range to remove (exclusive)
Attributes
- Inherited from:
- ObservableBuffer
Replace all oldVal elements in the list with newVal element. Fires only '''one''' change notification on the list.
Replace all oldVal elements in the list with newVal element. Fires only '''one''' change notification on the list.
Value parameters
- newVal
-
The replacement
- oldVal
-
The element that is going to be replace
Attributes
- Returns
-
true
if the list was modified - Inherited from:
- ObservableBuffer
Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all the elements that are not contained in the specified collection.
Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all the elements that are not contained in the specified collection.
Value parameters
- elems
-
the iterable collection containing elements to be retained in this list
Attributes
- Inherited from:
- ObservableBuffer
Retains only the provided elements. In other words, removes from this list all the elements that are not listed.
Retains only the provided elements. In other words, removes from this list all the elements that are not listed.
Value parameters
- elems
-
the elements to be retained in this list
Attributes
- Inherited from:
- ObservableBuffer
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- Cloneable
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOps
Sorts this ObservableBuffer
using a comparator function using JavaFX FXCollections.sort
.
Sorts this ObservableBuffer
using a comparator function using JavaFX FXCollections.sort
.
It is similar to Scala's sortInPlaceWith(c)
. It will produce the same result, but may produce different number of change notifications as different sorting algorithms are used.
Value parameters
- lt
-
comparator function that returns
true
if first element was lesser than second orfalse
otherwise.
Attributes
- Inherited from:
- ObservableBuffer
Sorts this ObservableBuffer
if its type implements "natural ordering" using using JavaFX FXCollections.sort
.
Sorts this ObservableBuffer
if its type implements "natural ordering" using using JavaFX FXCollections.sort
.
It is similar to Scala's sortInPlace()
. It will produce the same result, but may produce different number of change notifications as different sorting algorithms are used.
Attributes
- Inherited from:
- ObservableBuffer
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Inherited from:
- Buffer
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- Buffer
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Returns
-
Returns the original delegate's
toString()
adding a[SFX]
prefix. - Definition Classes
-
SFXDelegate -> Any
- Inherited from:
- SFXDelegate
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Replaces element at given index with a new value.
Replaces element at given index with a new value.
Value parameters
- n
-
the index of the element to replace.
- newelem
-
new value to be positioned at position n.
Attributes
- Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Growable
Removes two or more elements from this ObservableBuffer
.
Removes two or more elements from this ObservableBuffer
.
Value parameters
- elem1
-
First element to remove
- elem2
-
Second element to remove
- elems
-
Other elements to remove
Attributes
- Returns
-
The
ObservableBuffer
itself. - Deprecated
- true
- Definition Classes
- Inherited from:
- ObservableBuffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use appendAll instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use segmentLength instead of prefixLength - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use prependAll instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .reverseIterator.map(f).to(...) instead of .reverseMap(f) - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `mapInPlace` on an `IndexedSeq` instead - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.4]
use dropRightInPlace instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.4]
use dropInPlace instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `concat` instead - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .view.slice(from, until) instead of .view(from, until) - Definition Classes
- Inherited from:
- IndexedSeqOps
Concrete fields
JavaFX object to be wrapped.
JavaFX object to be wrapped.
Attributes
Inherited fields
Attributes
- Inherited from:
- ObservableBuffer