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. Overrided method to make it behave like 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. Overrided method to make it behave like wrapped ObservableList.
traversable object.
The ObservableBuffer itself.
Appends two or more elements to this ObservableBuffer.
Appends two or more elements to this ObservableBuffer. Overrided method to make it behave like 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. Overrided method to make it behave like wrapped ObservableList.
the element to add.
The ObservableBuffer itself.
Prepends a single element to this buffer.
Prepends a single element to this buffer. Overrided method to make it behave like 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 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.
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.
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.
Creates a new scala.Iterator.
Creates a new scala.Iterator.
Add a listener function to list's changes.
Add a listener function to list's changes. This functin 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 functin will handle this buffer's modifications data.
A subscription object
Adds a function as a InvalidationListener.
Adds a function as a InvalidationListener. This function has no arguments because it will not handle values Invalidated.
A Function with no arguments. It will be called when value was invalidated.
Adds a function as a InvalidationListener.
Adds a function as a InvalidationListener. This function has all arguments from invalidated method from InvalidationListener.
Function that receives a javafx.beans.Observable. It will be called when value was invalidated.
Removes a number of elements from a given index position.
Removes a number of elements from a given index position. Overrided method to make it behave like wrapped ObservableList.
Note: This method conflicts with method with same name in
int) 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
Remove a range of elements.
Remove a range of elements. Use this method if you want a functionality such as int) the method with same name 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.
Produces a ObservableBuffer from the added elements.
Produces a 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's natural ordering.
Sorts this ObservableBuffer if its type's natural ordering. This type must be a java.util.Comparable subclass. Otherwise it will throws a scala.IllegalStateException.
(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.
Wrapper class to ObservableList's JavaFX.
Type of this Buffer