package delegate
Contains traits and objects to help to wrap JavaFx classes in their equivalent ScalaFX classes/traits.
- Source
- package.scala
- Alphabetic
- By Inheritance
- delegate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AlignmentDelegate[J <: Aligned] extends SFXDelegate[J]
Trait that unifies JavaFX classes that contains properties indicating component's internal alignment, represented by
alignmentProperty
and its respective getter and setters. - trait AlignmentPropertyDelegate extends SFXDelegate[ReadOnlyObjectProperty[_]]
- trait DelegateIncludes extends AnyRef
- trait DimensionDelegate[J <: Dimensioned] extends SFXDelegate[J]
Trait that unifies JavaFX classes that contains properties indicating height and width, represented by
heightProperty
andwidthProperty
and their respective getter and setters.Trait that unifies JavaFX classes that contains properties indicating height and width, represented by
heightProperty
andwidthProperty
and their respective getter and setters.- J
Original JavaFX type that contains
height
andwidth
properties.
- trait FireDelegate[J <: Fired] extends SFXDelegate[J]
Unify classes that contains a
fire()
method that has no return (void
) - trait PositionDelegate[J <: Positioned] extends SFXDelegate[J]
Trait that unifies JavaFX classes that contains properties indicating localization in 2 dimensions, represented by
xProperty
andyProperty
and their respective getter and setters. - trait SFXDelegate[+D <: AnyRef] extends AnyRef
Basic trait for all JavaFX classes wrapping.
Basic trait for all JavaFX classes wrapping.
- D
JavaFX class to be wrapped.
- trait SFXEnumDelegate[E <: Enum[E]] extends SFXDelegate[E]
Base trait for JavaFX
enum
wrappers.Base trait for JavaFX
enum
wrappers.- E
Original JavaFX
enum
- trait SFXEnumDelegateCompanion[E <: Enum[E], S <: SFXEnumDelegate[E]] extends AnyRef
Base trait for all Companion objects
SFXEnumDelegate
subclasses.Base trait for all Companion objects
SFXEnumDelegate
subclasses. It mirrors static methods forEnum
.- E
Original JavaFX
enum
- S
SFXEnumDelegate
that wrappersE
Value Members
- object AlignmentDelegate
- object DelegateIncludes extends DelegateIncludes
- object DimensionDelegate
- object FireDelegate
- object PositionDelegate
- object SFXDelegate
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.