Creates a new ObservableBuffer
containing both the elements of this Buffer
and the
provided traversable object.
Creates a new ObservableBuffer
containing both the elements of this Buffer
and the
provided traversable object. Overridden method to make it behave like a wrapped ObservableList
. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
The traversable object.
A new ObservableBuffer
consisting of all the elements of this Buffer
and xs
. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
Adds all elements produced by a TraversableOnce to this ObservableBuffer
.
Adds all elements produced by a TraversableOnce to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
traversable object.
The ObservableBuffer
itself.
Appends two or more elements to this ObservableBuffer
.
Appends two or more elements to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
First element to add
Second element to add
Other elements to add
The ObservableBuffer
itself.
Appends a single element to this ObservableBuffer
.
Appends a single element to this ObservableBuffer
. Overridden method to make it behave like a wrapped ObservableList
.
the element to add.
The ObservableBuffer
itself.
Prepends a single element to this buffer.
Prepends a single element to this buffer. Overridden method to make it behave like a wrapped ObservableList
.
Element to prepend
The ObservableBuffer
itself.
Creates a new collection with all the elements of this collection except the two or more specified elements.
Creates a new collection with all the elements of this collection except the two
or more specified elements. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
First element to remove
Second element to remove
Other elements to remove
a new ObservableBuffer
consisting of all the elements of this Buffer
except elem1
, elem2
and
those in elems
. 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
.
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
.
Element to remove
A new ObservableBuffer
consisting of all the elements of this Buffer
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 Buffer
except those provided by
the specified traversable object.
Creates a new ObservableBuffer
with all the elements of this Buffer
except those provided by
the specified traversable object. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
The traversable object.
A new ObservableBuffer
with all the elements of this Buffer
except those in xs
. The new ObservableBuffer
won't have Change and Invalidation Listeners from original Buffer
.
Removes all elements produced by an iterator from this buffer.
Removes all elements produced by an iterator from this buffer.
the traversable object with elements to remove.
The ObservableBuffer
itself.
Removes two or more elements from this ObservableBuffer
.
Removes two or more elements from this ObservableBuffer
.
First element to remove
Second element to remove
Other elements to remove
The ObservableBuffer
itself.
Appends a single element to this buffer.
Appends a single element to this buffer. Overridden method to make it behave like a wrapped ObservableList
.
Element to append
The ObservableBuffer
itself.
Selects an element by its index in the buffer.
Selects an element by its index in the buffer.
index
Element at position n
Clears the ObservableBuffer
's contents.
Clears the ObservableBuffer
's contents. After this operation, the Buffer
is empty.
The factory companion object that builds instances of class ObservableBuffer
.
The factory companion object that builds instances of class ObservableBuffer
.
JavaFX object to be wrapped.
JavaFX object to be wrapped.
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
Object to be compared.
if the other object is equals to this delegate or not.
The delegate hashcode
Inserts new elements at a given index into this Buffer
.
Inserts new elements at a given index into this Buffer
.
the index where new elements are inserted.
the traversable collection containing the elements to insert.
Creates a new Iterator
.
Creates a new Iterator
.
Length of this ObservableBuffer
.
Length of this ObservableBuffer
.
Add a listener function to list's changes.
Add a listener function to list's changes. This function will not handle this buffer's modifications data.
No-argument function to be activated when some change in this ObservableBuffer
was made.
A subscription
object
Add a listener function to list's changes.
Add a listener function to list's changes. This function will handle this buffer's modifications data.
Function that will handle this ObservableBuffer
's modifications data to be activated when
some change was made.
A subscription object
Adds a no argument function as a JavaFX InvalidationListener
.
Adds a no argument function as a JavaFX InvalidationListener
. This function has no arguments because it will not handle
invalidated values.
A Function with no arguments. It will be called when value was invalidated.
A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener
.
Adds a function as a JavaFX InvalidationListener
.
Adds a function as a JavaFX InvalidationListener
. This function has all arguments from
invalidated
method from InvalidationListener
.
Function that receives a ScalaFX Observable
. It will be called when value was invalidated.
A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener
.
Removes a number of elements from a given index position.
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
.
the index which refers to the first element to remove.
the number of elements to remove.
Removes the element at a given index from this ObservableBuffer
.
Removes the element at a given index from this ObservableBuffer
.
index the index of the element to be removed
Removed element
Remove a range of elements.
Remove a range of elements. Use this method if you want a functionality such as
the method
with same signature in ObservableList
.
the start of the range to remove (inclusive)
the end of the range to remove (exclusive)
Replace all oldVal elements in the list with newVal element.
Replace all oldVal elements in the list with newVal element. Fires only one change notification on the list.
The element that is going to be replace
The replacement
true
if the list was modified
Produces an ObservableBuffer
from the added elements.
Produces an ObservableBuffer
from the added elements.
Retains only the elements in this list that are 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.
the traversable collection containing elements to be retained in this list
Retains only the elements in this list that are 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.
the traversable collection containing elements to be retained in this list
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Sorts this ObservableBuffer
using a Comparator function
Sorts this ObservableBuffer
using a Comparator function
Comparator function that returns true
if first element was lesser than second
or false
otherwise.
Sorts this ObservableBuffer
if its type implements natural ordering.
Sorts this ObservableBuffer
if its type implements natural ordering. This type must be a
java.util.Comparable
subclass.
Otherwise it will throws a IllegalStateException
.
information about if this type is a Comparable
subclass or not.
Returns the original delegate's toString()
adding a [SFX]
prefix.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Replaces element at given index with a new value.
Replaces element at given index with a new value.
the index of the element to replace.
new value to be positioned at position n.
(Since version 2.11.0) Scripting is deprecated.
(Since version 2.11.0) The returned sequence changes as this buffer is mutated. For an immutable copy, use, e.g., toList.
Wrapper class to JavaFX's
ObservableList
.Type of this
Buffer