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
- All
Type Members
-
trait
AlignmentDelegate
[J <: Aligned] extends SFXDelegate[J]
Trait that unifies JavaFX classes that contains properties indicating component's internal alignment, represented by
alignmentPropertyand 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
heightPropertyandwidthPropertyand their respective getter and setters.Trait that unifies JavaFX classes that contains properties indicating height and width, represented by
heightPropertyandwidthPropertyand their respective getter and setters.- J
Original JavaFX type that contains
heightandwidthproperties.
-
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
xPropertyandyPropertyand 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
enumwrappers.Base trait for JavaFX
enumwrappers.- E
Original JavaFX
enum
-
trait
SFXEnumDelegateCompanion
[E <: Enum[E], S <: SFXEnumDelegate[E]] extends AnyRef
Base trait for all Companion objects
SFXEnumDelegatesubclasses.Base trait for all Companion objects
SFXEnumDelegatesubclasses. It mirrors static methods forEnum.- E
Original JavaFX
enum- S
SFXEnumDelegatethat 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.animationcorresponds 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 astagethat contains ascene. Astageroughly corresponds to a window in a typical UI environment. Thesceneholds UI content presented to the user. In the example below, the content is a pane with a singlelabelcomponent.