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 JFXApp. 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.JFXApp
    import scalafx.application.JFXApp.PrimaryStage
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp {
      stage = new PrimaryStage {
        title = "Hello"
        scene = new Scene {
          root = new BorderPane {
            padding = Insets(25)
            center = new Label("Hello World")
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package animation

    Wraps javafx.animation package.

  • package application

    Wraps javafx.application package.

  • package beans

    Wraps javafx.beans package.

  • package collections

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

  • package concurrent

    Wraps javafx.concurrent package.

  • package css

    Wraps javafx.css package.

    Wraps javafx.css package.

    Since

    8.0

  • package delegate

    Contains traits and objects to help to wrap JavaFx classes in their equivalent ScalaFX classes/traits.

  • package embed
  • package event

    Wraps javafx.event package.

  • package geometry

    Wraps javafx.geometry package.

  • package print

    Wraps javafx.print package.

    Wraps javafx.print package.

    Since

    8.0

  • package scene

    Wraps javafx.scene package.

  • package stage

    Wraps javafx.stage package.

  • package util

    Wraps javafx.util package.

  • Includes
p

scalafx

package scalafx

Base package for ScalaFX classes.

Source
package.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scalafx
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Package Members

  1. package animation

    Wraps javafx.animation package.

  2. package application

    Wraps javafx.application package.

  3. package beans

    Wraps javafx.beans package.

  4. package collections

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

  5. package concurrent

    Wraps javafx.concurrent package.

  6. package css

    Wraps javafx.css package.

    Wraps javafx.css package.

    Since

    8.0

  7. package delegate

    Contains traits and objects to help to wrap JavaFx classes in their equivalent ScalaFX classes/traits.

  8. package embed
  9. package event

    Wraps javafx.event package.

  10. package geometry

    Wraps javafx.geometry package.

  11. package print

    Wraps javafx.print package.

    Wraps javafx.print package.

    Since

    8.0

  12. package scene

    Wraps javafx.scene package.

  13. package stage

    Wraps javafx.stage package.

  14. package util

    Wraps javafx.util package.

Value Members

  1. object Includes extends Includes

    Include file that contains all the necessary declarations for jfx->sfx implicit conversions and other syntactic sugar.

    Include file that contains all the necessary declarations for jfx->sfx implicit conversions and other syntactic sugar.

    This file is tiered both for modularity and to prioritize the implicits (the order of the withs matter a lot!)

Inherited from AnyRef

Inherited from Any

Ungrouped