Packages

  • package root

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8.

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.

    Package Structure

    ScalaFX package structure corresponds to JavaFX package structure, for instance scalafx.animation corresponds to javafx.animation.

    Example Usage

    A basic ScalaFX application is created creating an object that is an instance of JFXApp3. Following Java FX theatre metaphor, it contains a stage that contains a scene. A stage roughly corresponds to a window in a typical UI environment. The scene holds UI content presented to the user. In the example below, the content is a pane with a single label component.

    package hello
    
    import scalafx.application.JFXApp3
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp3 {
    
      override def start(): Unit = {
        stage = new JFXApp3.PrimaryStage {
          title = "Hello"
          scene = new Scene {
            root = new BorderPane {
              padding = Insets(75)
              center = new Label("Hello World")
            }
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package collections

    Wraps javafx.collections package, adding Scala's collections features to original JavaFX collections.

    Wraps javafx.collections package, adding Scala's collections features to original JavaFX collections.

    Definition Classes
    scalafx
  • package transformation
    Definition Classes
    collections
  • CollectionIncludes
  • ObservableArray
  • ObservableBuffer
  • ObservableBufferBase
  • ObservableFloatArray
  • ObservableHashMap
  • ObservableHashSet
  • ObservableIntegerArray
  • ObservableMap
  • ObservableSet

class ObservableIntegerArray extends ObservableArray[Int, ObservableIntegerArray, javafx.collections.ObservableIntegerArray]

Wrapper class to JavaFX's ObservableIntegerArray.

Source
ObservableIntegerArray.scala
Linear Supertypes
ObservableArray[Int, ObservableIntegerArray, javafx.collections.ObservableIntegerArray], Observable, SFXDelegate[javafx.collections.ObservableIntegerArray], Builder[Int, ObservableIntegerArray], Growable[Int], Clearable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableIntegerArray
  2. ObservableArray
  3. Observable
  4. SFXDelegate
  5. Builder
  6. Growable
  7. Clearable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ObservableIntegerArray(n: Int)

    Create ObservableIntegerArray with specified capacity.

    Create ObservableIntegerArray with specified capacity.

    Elements will be zeroed out.

    n

    Size of new ObservableIntegerArray. This value cannot be negative.

    Exceptions thrown

    NegativeArraySizeException if n is negative.

  2. new ObservableIntegerArray(delegate: javafx.collections.ObservableIntegerArray = jfxc.FXCollections.observableIntegerArray())

    delegate

    Wrapped JavaFX ObservableIntegerArray providing implementation.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++=(src: ObservableIntegerArray): ObservableIntegerArray

    Append another observable array to this array.

    Append another observable array to this array.

    src

    Array to be appended to this array.

    returns

    This array, expanded to contain the indicated array.

    Definition Classes
    ObservableArray
  4. def ++=(src: Array[Int]): ObservableIntegerArray

    Append another array to this array.

    Append another array to this array.

    src

    Array to be appended to this array.

    returns

    This array, expanded to contain the indicated array.

    Definition Classes
    ObservableArray
  5. final def ++=(xs: IterableOnce[Int]): ObservableIntegerArray.this.type
    Definition Classes
    Growable
    Annotations
    @inline()
  6. final def +=(elem: Int): ObservableIntegerArray.this.type
    Definition Classes
    Growable
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. 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.

    src

    Elements to be appended.

    srcIdx

    Start position in the src array.

    length

    Number of data elements to be appended.

    Definition Classes
    ObservableIntegerArrayObservableArray
  9. 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.

    src

    Elements to be appended.

    srcIdx

    Start position in the src array.

    length

    Number of data elements to be appended.

    Definition Classes
    ObservableIntegerArrayObservableArray
  10. 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.

    src

    Elements to be appended.

    Definition Classes
    ObservableIntegerArrayObservableArray
  11. 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.

    elems

    Elements to be appended.

    Definition Classes
    ObservableIntegerArrayObservableArray
  12. def addAll(xs: IterableOnce[Int]): ObservableIntegerArray.this.type
    Definition Classes
    Growable
  13. def addOne(elem: Int): ObservableIntegerArray.this.type

    Append new element to this ObservableArray.

    Append new element to this ObservableArray.

    elem

    Element to be added to end of this array.

    returns

    This ObservableArray.

    Definition Classes
    ObservableArray → Growable
  14. def apply(idx: Int): Int

    Select an element by its index in the array.

    Select an element by its index in the array.

    idx

    Index of selected element.

    returns

    Element at given idx.

    Definition Classes
    ObservableArray
    Exceptions thrown

    java.lang.ArrayIndexOutOfBoundsException if idx does not satisfy 0 <= idx < length.

  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. 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
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  18. 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.

    srcIdx

    Start position in this array.

    dest

    Array into which the portion of this array is to be copied.

    destIdx

    Start position in the dest array.

    length

    Number of data elements to be copied.

    Definition Classes
    ObservableIntegerArrayObservableArray
  19. 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.

    srcIdx

    Start position in this array.

    dest

    Array into which the portion of this array is to be copied.

    destIdx

    Start position in the dest array.

    length

    Number of data elements to be copied.

    Definition Classes
    ObservableIntegerArrayObservableArray
  20. val delegate: javafx.collections.ObservableIntegerArray

    JavaFX object to be wrapped.

    JavaFX object to be wrapped.

    Definition Classes
    ObservableArraySFXDelegate
  21. 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.

    capacity

    Required capacity.

    Definition Classes
    ObservableArray
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(ref: Any): Boolean

    Verifies if a object is equals to this delegate.

    Verifies if a object is equals to this delegate.

    ref

    Object to be compared.

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  24. def get(idx: Int): Int

    Select the element at idx in the array.

    Select the element at idx in the array.

    idx

    Index of selected element.

    returns

    Element at given idx.

    Definition Classes
    ObservableIntegerArrayObservableArray
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def hashCode(): Int

    returns

    The delegate hashcode

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

    Definition Classes
    ObservableArray
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def knownSize: Int
    Definition Classes
    Growable
  30. def length: Int

    Alias for size

    Alias for size

    Definition Classes
    ObservableArray
  31. def mapResult[NewTo](f: (ObservableIntegerArray) => NewTo): Builder[Int, NewTo]
    Definition Classes
    Builder
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. 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.

    Definition Classes
    ObservableArray
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def onChange(op: => Unit): Subscription

    Add a listener function to Array's changes.

    Add a listener function to Array's changes.

    op

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

    Definition Classes
    ObservableArray
    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.

  37. def onChange(op: (ObservableIntegerArray, Change) => Unit): Subscription

    Add a listener function to Array's changes.

    Add a listener function to Array's changes.

    op

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

    Definition Classes
    ObservableArray
    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.

  38. def onInvalidate(op: => Unit): Subscription

    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.

    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.

    Definition Classes
    Observable
  39. def onInvalidate(op: (Observable) => Unit): Subscription

    Adds a function as a JavaFX InvalidationListener.

    Adds a function as a JavaFX InvalidationListener. This function has all arguments from invalidated method from InvalidationListener.

    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.

    Definition Classes
    Observable
  40. def result(): ObservableIntegerArray

    Produces collection from builder.

    Produces collection from builder.

    returns

    This ObservableArray.

    Definition Classes
    ObservableArray → Builder
  41. 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.

    destIdx

    Start position in this array.

    src

    Array containing data to be copied.

    srcIdx

    Start position in src array.

    length

    Number of data elements to be copied.

    Definition Classes
    ObservableIntegerArrayObservableArray
  42. 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.

    destIdx

    Start position in this array.

    src

    Array containing data to be copied.

    srcIdx

    Start position in src array.

    length

    Number of data elements to be copied.

    Definition Classes
    ObservableIntegerArrayObservableArray
  43. 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.

    idx

    Index of element to be changed.

    Definition Classes
    ObservableIntegerArrayObservableArray
  44. 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.

    src

    Array to replace contents this array.

    srcIdx

    Start position in the src array.

    length

    Number of data elements to be copied.

    Definition Classes
    ObservableIntegerArrayObservableArray
  45. 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.

    src

    Array to replace contents this array.

    srcIdx

    Start position in the src array.

    length

    Number of data elements to be copied.

    Definition Classes
    ObservableIntegerArrayObservableArray
  46. 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.

    src

    Array to replace contents this array.

    Definition Classes
    ObservableIntegerArrayObservableArray
  47. 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
    ObservableIntegerArrayObservableArray
  48. def size: Int

    Retrieve length of data in this array.

    Retrieve length of data in this array.

    returns

    Length of data in this array.

    Definition Classes
    ObservableArray
  49. final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
    Definition Classes
    Builder
  50. def sizeHint(size: Int): Unit
    Definition Classes
    Builder
  51. final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
    Definition Classes
    Builder
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. 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.

    srcIdx

    Start position in this array.

    dest

    Array into which this array will be written, if large enough to hold this array's contents. If null, this argument is ignored.

    length

    Number of data elements to be copied.

    returns

    The dest array if it is large enough to hold this array's data, or a new array, containing this array's copied contents.

    Definition Classes
    ObservableIntegerArrayObservableArray
  54. 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.

    dest

    Array into which this array will be written, if large enough to hold this array's contents. If null, this argument is ignored.

    returns

    The dest array if it is large enough to hold this array's data, or a new array, containing this array's copied contents.

    Definition Classes
    ObservableIntegerArrayObservableArray
  55. 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.

    Definition Classes
    ObservableArray
  56. def toString(): String

    returns

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

    Definition Classes
    SFXDelegate → AnyRef → Any
  57. def trimToSize(): Unit

    Shrinks capacity to current length of data in this array.

    Shrinks capacity to current length of data in this array.

    Definition Classes
    ObservableArray
  58. 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.

    idx

    Index of element to be changed.

    value

    New value for element at idx.

    Definition Classes
    ObservableArray
    Exceptions thrown

    java.lang.ArrayIndexOutOfBoundsException if idx does not satisfy 0 <= idx < length.

  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. final def +=(elem1: Int, elem2: Int, elems: Int*): ObservableIntegerArray.this.type
    Definition Classes
    Growable
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use ++= aka addAll instead of varargs +=; infix operations with an operand of multiple args will be deprecated

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ObservableArray[Int, ObservableIntegerArray, javafx.collections.ObservableIntegerArray]

Inherited from Observable

Inherited from SFXDelegate[javafx.collections.ObservableIntegerArray]

Inherited from Growable[Int]

Inherited from Clearable

Inherited from AnyRef

Inherited from Any

Ungrouped