ObservableIntegerArray

scalafx.collections.ObservableIntegerArray
See theObservableIntegerArray companion object
class ObservableIntegerArray(delegate: ObservableIntegerArray) extends ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]

Wrapper class to JavaFX's ObservableIntegerArray.

Value parameters

delegate

Wrapped JavaFX $OIA providing implementation.

Attributes

Companion
object
Graph
Supertypes
class ObservableArray[Int, ObservableIntegerArray, ObservableIntegerArray]
trait Observable
trait SFXDelegate[ObservableIntegerArray]
trait Growable[Int]
trait Clearable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(n: Int)

Create ObservableIntegerArray with specified capacity.

Create ObservableIntegerArray with specified capacity.

Elements will be zeroed out.

Value parameters

n

Size of new ObservableIntegerArray. This value cannot be negative.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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

Select the element at idx in the array.

Select the element at idx in the array.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Definition Classes

Inherited methods

Append another observable array to this array.

Append another observable array to this array.

Value parameters

src

Array to be appended to this array.

Attributes

Returns

This array, expanded to contain the indicated array.

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

Append another array to this array.

Append another array to this array.

Value parameters

src

Array to be appended to this array.

Attributes

Returns

This array, expanded to contain the indicated array.

Inherited from:
ObservableArray
final def ++=(xs: IterableOnce[Int]): Growable.this.type

Attributes

Inherited from:
Growable
final def +=(elem: Int): Growable.this.type

Attributes

Inherited from:
Growable
def addAll(xs: IterableOnce[Int]): Growable.this.type

Attributes

Inherited from:
Growable
override def addOne(elem: Int): ObservableArray.this.type

Append new element to this ObservableArray.

Append new element to this ObservableArray.

Value parameters

elem

Element to be added to end of this array.

Attributes

Returns

This ObservableArray.

Definition Classes
Inherited from:
ObservableArray
def apply(idx: Int): V

Select an element by its index in the array.

Select an element by its index in the array.

Value parameters

idx

Index of selected element.

Attributes

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.

Attributes

Definition Classes
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 parameters

capacity

Required capacity.

Attributes

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 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
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Tests whether the collection is empty.

Tests whether the collection is empty.

Attributes

Returns

true if the collection contains no elements, false otherwise.

Inherited from:
ObservableArray
def knownSize: Int

Attributes

Inherited from:
Growable
def length: Int

Alias for size

Alias for size

Attributes

Inherited from:
ObservableArray

Attributes

Inherited from:
Builder

Tests whether the collection is not empty.

Tests whether the collection is not empty.

Attributes

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 parameters

op

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

Attributes

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 parameters

op

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

Attributes

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

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
override def result(): T

Produces collection from builder.

Produces collection from builder.

Attributes

Returns

This ObservableArray.

Definition Classes
Inherited from:
ObservableArray
def size: Int

Retrieve length of data in this array.

Retrieve length of data in this array.

Attributes

Returns

Length of data in this array.

Inherited from:
ObservableArray
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder
def toArray: Array[V]

Translate this observable array to a regular array.

Translate this observable array to a regular array.

Attributes

Returns

Regular array containing this array's contents.

Inherited from:
ObservableArray
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
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.

Attributes

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 parameters

idx

Index of element to be changed.

value

New value for element at idx.

Attributes

Throws
java.lang.ArrayIndexOutOfBoundsException

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

Inherited from:
ObservableArray

Deprecated and Inherited methods

final def +=(elem1: Int, elem2: Int, elems: Int*): Growable.this.type

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