ObservableIntegerArray

class ObservableIntegerArray(delegate: ObservableIntegerArray) extends ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]

Wrapper class to JavaFX's ObservableIntegerArray.

Wrapper class to JavaFX's ObservableIntegerArray.

Value Params
delegate

Wrapped JavaFX ObservableIntegerArray providing implementation.

Companion
object
class ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]
trait SFXDelegate[ObservableIntegerArray]
trait Builder[Int, ObservableIntegerArray]
trait Growable[Int]
trait Clearable
class Object
trait Matchable
class Any

Value members

Constructors

def this(n: Int)

Create ObservableIntegerArray with specified capacity.

Create ObservableIntegerArray with specified capacity.

Elements will be zeroed out.

Value Params
n

Size of new ObservableIntegerArray. This value cannot be negative.

Throws
NegativeArraySizeException

if n is negative.

Concrete methods

override def addAll(elems: Int*): Unit

Append given elements to the end of this array.

Append given elements to the end of this array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def addAll(src: ObservableIntegerArray): Unit

Append given observable array to the end of this array.

Append given observable array to the end of this array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def addAll(src: Array[Int], srcIdx: Int, length: Int): Unit

Append portion of given regular array to the end of this array.

Append portion of given regular array to the end of this array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def addAll(src: ObservableIntegerArray, srcIdx: Int, length: Int): Unit

Append portion of given regular array to the end of this array.

Append portion of given regular array to the end of this array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def copyTo(srcIdx: Int, dest: Array[Int], destIdx: Int, length: Int): Unit

Copy specified portion of this observable array to dest regular array.

Copy specified portion of this observable array to dest regular array.

Definition Classes
override def copyTo(srcIdx: Int, dest: ObservableIntegerArray, destIdx: Int, length: Int): Unit

Copy specified portion of this observable array to dest observable array.

Copy specified portion of this observable array to dest observable array.

Definition Classes
override def get(idx: Int): Int

Select the element at idx in the array.

Select the element at idx in the array.

Definition Classes
override def set(idx: Int, elem: Int): Unit

Set the element at idx in the array to value.

Set the element at idx in the array to value.

Definition Classes
override def set(destIdx: Int, src: Array[Int], srcIdx: Int, length: Int): Unit

Copy a portion of given regular array into this array, replacing affected contents.

Copy a portion of given regular array into this array, replacing affected contents.

Definition Classes
override def set(destIdx: Int, src: ObservableIntegerArray, srcIdx: Int, length: Int): Unit

Copy a portion of given observable array into this array, replacing affected contents.

Copy a portion of given observable array into this array, replacing affected contents.

Definition Classes
override def setAll(elements: Int*): Unit

Replace the contents of this array with the given elements.

Replace the contents of this array with the given elements.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def setAll(src: ObservableIntegerArray): Unit

Replace the contents of this array with the given observable array.

Replace the contents of this array with the given observable array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def setAll(src: Array[Int], srcIdx: Int, length: Int): Unit

Replace the contents of this array with portion of the given regular array.

Replace the contents of this array with portion of the given regular array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def setAll(src: ObservableIntegerArray, srcIdx: Int, length: Int): Unit

Replace the contents of this array with portion of the given observable array.

Replace the contents of this array with portion of the given observable array.

Capacity is increased, if necessary, to match the new size of the data.

Definition Classes
override def toArray(dest: Array[Int]): Array[Int]

Write the contents of this array into the specified array, if it is large enough, or a new array if it is not.

Write the contents of this array into the specified array, if it is large enough, or a new array if it is not.

Definition Classes
override def toArray(srcIdx: Int, dest: Array[Int], length: Int): Array[Int]

Write a portion of this array's contents into the specified array, if it is large enough, or a new array if it is not.

Write a portion of this array's contents into the specified array, if it is large enough, or a new array if it is not.

Definition Classes

Inherited methods

Append another observable array to this array.

Append another observable array to this array.

Value Params
src

Array to be appended to this array.

Returns

This array, expanded to contain the indicated array.

Inherited from
ObservableArray
def ++=(src: Array[Int]): ObservableIntegerArray

Append another array to this array.

Append another array to this array.

Value Params
src

Array to be appended to this array.

Returns

This array, expanded to contain the indicated array.

Inherited from
ObservableArray
@inline
final def ++=(xs: IterableOnce[Int]): ObservableIntegerArray
Inherited from
Growable
@inline
final def +=(elem: Int): ObservableIntegerArray
Inherited from
Growable
def addAll(xs: IterableOnce[Int]): ObservableIntegerArray
Inherited from
Growable
override def addOne(elem: Int): ObservableIntegerArray

Append new element to this ObservableArray.

Append new element to this ObservableArray.

Value Params
elem

Element to be added to end of this array.

Returns

This ObservableArray.

Definition Classes
ObservableArray -> Growable
Inherited from
ObservableArray
def apply(idx: Int): Int

Select an element by its index in the array.

Select an element by its index in the array.

Value Params
idx

Index of selected element.

Returns

Element at given idx.

Throws
java.lang.ArrayIndexOutOfBoundsException

if idx does not satisfy 0 <= idx < length.

Inherited from
ObservableArray
override def clear(): Unit

Empty array, clearing builder contents, resizing it to zero.

Empty array, clearing builder contents, resizing it to zero.

Capacity is unchanged.

Definition Classes
ObservableArray -> Builder -> Clearable
Inherited from
ObservableArray
def ensureCapacity(capacity: Int): Unit

Grow array capacity if currently smaller than given capacity; do nothing otherwise.

Grow array capacity if currently smaller than given capacity; do nothing otherwise.

Value Params
capacity

Required capacity.

Inherited from
ObservableArray
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
def isEmpty: Boolean

Tests whether the collection is empty.

Tests whether the collection is empty.

Returns

true if the collection contains no elements, false otherwise.

Inherited from
ObservableArray
def knownSize: Int
Inherited from
Growable
def length: Int

Alias for size

Alias for size

Inherited from
ObservableArray
def mapResult[NewTo](f: ObservableIntegerArray => NewTo): Builder[Int, NewTo]
Inherited from
Builder
def nonEmpty: Boolean

Tests whether the collection is not empty.

Tests whether the collection is not empty.

Returns

true if the collection contains at least one element, false otherwise.

Inherited from
ObservableArray
def onChange(op: => Unit): Subscription

Add a listener function to Array's changes.

Add a listener function to Array's changes.

Value Params
op

Function that will handle this ObservableArray's modifications data, to be activated when some change is made.

Note

This function '''will not handle''' this array's modifications data. That is, it will be notified that an array it is associated with has changed, but not which array the which data within it was changed.

Inherited from
ObservableArray

Add a listener function to Array's changes.

Add a listener function to Array's changes.

Value Params
op

Function that will handle this ObservableArray's modifications data, to be activated when some change is made.

Note

This function '''will handle''' this array's modifications data. That is, it will be notified which array has been modified and which array elements have been changed.

Inherited from
ObservableArray
def onInvalidate(op: => Unit): Subscription

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 Params
op

A Function with no arguments. It will be called when value was invalidated.

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 Params
op

Function that receives a ScalaFX Observable. It will be called when value was invalidated.

Returns

A new scalafx.event.subscriptions.Subscription to remove JavaFX InvalidationListener.

Inherited from
Observable

Produces collection from builder.

Produces collection from builder.

Returns

This ObservableArray.

Definition Classes
ObservableArray -> Builder
Inherited from
ObservableArray
def size: Int

Retrieve length of data in this array.

Retrieve length of data in this array.

Returns

Length of data in this array.

Inherited from
ObservableArray
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
Inherited from
Builder
def sizeHint(size: Int): Unit
Inherited from
Builder
final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
Inherited from
Builder
def toArray: Array[Int]

Translate this observable array to a regular array.

Translate this observable array to a regular array.

Returns

Regular array containing this array's contents.

Inherited from
ObservableArray
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate
def trimToSize(): Unit

Shrinks capacity to current length of data in this array.

Shrinks capacity to current length of data in this array.

Inherited from
ObservableArray
def update(idx: Int, value: Int): Unit

Set the element at idx in the array to value.

Set the element at idx in the array to value.

Value Params
idx

Index of element to be changed.

value

New value for element at idx.

Throws
java.lang.ArrayIndexOutOfBoundsException

if idx does not satisfy 0 <= idx < length.

Inherited from
ObservableArray

Deprecated and Inherited methods

@inline @deprecated("Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated", "2.13.0")
final def +=(elem1: Int, elem2: Int, elems: Int*): ObservableIntegerArray
Deprecated
Inherited from
Growable