package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package converter
Wraps
javafx.util.converter
package.
Type Members
- class Duration extends SFXDelegate[javafx.util.Duration] with Ordered[Duration]
Wraps a JavaFX
Duration
. - abstract class StringConverter[T] extends AnyRef
Wraps a JavaFX
StringConverter
.Wraps a JavaFX
StringConverter
.- T
Type to be converted from/to
String
.
- trait UtilIncludes extends AnyRef
Contains implicit methods to convert from
javafx.util
Classes to their ScalaFX counterparts.
Value Members
- object Duration
Companion Object for scalafx.util.Duration.
- object StringConverter
Companion Object for scalafx.util.StringConverter.
- object UtilIncludes extends UtilIncludes
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 tojavafx.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 astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.