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
  • FilteredBuffer
  • SortedBuffer
  • TransformationBuffer
  • TransformationIncludes
p

scalafx.collections

transformation

package transformation

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class FilteredBuffer[E] extends TransformationBuffer[E, E] with SFXDelegate[FilteredList[E]]

    Wraps a JavaFX FilteredList.

  2. class SortedBuffer[E] extends TransformationBuffer[E, E] with SFXDelegate[SortedList[E]]

    Wraps a JavaFX SortedList.

  3. abstract class TransformationBuffer[E, F] extends ObservableBufferBase[E] with SFXDelegate[TransformationList[E, F]]

    A base class for all buffers that wraps other buffers in a way that changes the buffer's elements, order, size or generally it's structure.

    A base class for all buffers that wraps other buffers in a way that changes the buffer's elements, order, size or generally it's structure. If the source list is observable, a listener is automatically added to it and the events are delegated.

    Wraps a JavaFX TransformationList.

    E

    - the type parameter of this buffer.

    F

    - the upper bound of the type of the source buffer.

  4. trait TransformationIncludes extends AnyRef

    Contains implicit methods to convert from javafx.collections.transformation Classes to their ScalaFX counterparts.

Ungrouped