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

object ObservableMap extends MapFactory[ObservableMap]

Companion Object for scalafx.collections.ObservableMap.

Source
ObservableMap.scala
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableMap
  2. MapFactory
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class Add[K, V](key: K, added: V) extends Change[K, V] with Product with Serializable

    Indicates an addition in an ObservableMap.

    Indicates an addition in an ObservableMap.

    key

    Handled Key.

    added

    Added element.

    See also

    MapChangeListener.Change.getKey()

    MapChangeListener.Change.getValueAdded()

  2. trait Change[K, V] extends AnyRef

    Indicates a change in an ObservableMap.

    Indicates a change in an ObservableMap. It is a simpler version of JavaFX's MapChangeListener.Change, where each subclass indicates a specific change operation.

  3. case class Remove[K, V](key: K, removed: V) extends Change[K, V] with Product with Serializable

    Indicates a removal in an ObservableMap.

    Indicates a removal in an ObservableMap.

    key

    Handled Key.

    removed

    Removed element.

    See also

    MapChangeListener.Change.getKey()

    MapChangeListener.Change.getValueRemoved()

  4. case class Replace[K, V](key: K, added: V, removed: V) extends Change[K, V] with Product with Serializable

    Indicates a replacement in an ObservableMap.

    Indicates a replacement in an ObservableMap.

    key

    Handled Key.

    added

    Added Value.

    removed

    Removed Value.

    See also

    MapChangeListener.Change.getKey()

    MapChangeListener.Change.getValueAdded()

    MapChangeListener.Change.getValueRemoved()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[K, V](elems: (K, V)*): ObservableMap[K, V]
    Definition Classes
    MapFactory
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def empty[K, V]: ObservableMap[K, V]

    Creates an empty ObservableMap.

    Creates an empty ObservableMap.

    returns

    a Empty scalafx.collections.ObservableHashMap

    Definition Classes
    ObservableMap → MapFactory
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def from[K, V](source: IterableOnce[(K, V)]): ObservableMap[K, V]
    Definition Classes
    ObservableMap → MapFactory
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. implicit def mapFactory[K, V]: Factory[(K, V), ObservableMap[K, V]]
    Definition Classes
    MapFactory
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def newBuilder[K, V]: Builder[(K, V), ObservableMap[K, V]]
    Definition Classes
    ObservableMap → MapFactory
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. implicit def sfxObservableMap2sfxObservableMap[K, V](om: ObservableMap[K, V]): javafx.collections.ObservableMap[K, V]

    Extracts a JavaFX's ObservableMap from a ScalaFX's ObservableMap.

    Extracts a JavaFX's ObservableMap from a ScalaFX's ObservableMap.

    om

    ScalaFX's ObservableMap.

    returns

    JavaFX's ObservableMap inside parameter.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from MapFactory[ObservableMap]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped