object Bindings extends Bindings
- Source
- Bindings.scala
- Alphabetic
- By Inheritance
- Bindings
- Bindings
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class BooleanConditionBuilder extends AnyRef
- Attributes
- protected
- Definition Classes
- Bindings
- class ConditionBuilder extends AnyRef
- Attributes
- protected
- Definition Classes
- Bindings
- class NumberConditionBuilder extends AnyRef
- Attributes
- protected
- Definition Classes
- Bindings
- class ObjectConditionBuilder[T] extends AnyRef
- Attributes
- protected
- Definition Classes
- Bindings
- class StringConditionBuilder extends AnyRef
- Attributes
- protected
- Definition Classes
- Bindings
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(v1: ObservableNumberValue, values: ObservableNumberValue*): ObservableNumberValue
Returns the sum of a collection of JavaFX
ObservableNumberValue
s.Returns the sum of a collection of JavaFX
ObservableNumberValue
s.- v1
First Value
- values
Collection of values
- returns
The Value sum.
- Definition Classes
- Bindings
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def createBooleanBinding(func: () => Boolean, dependencies: Observable*): BooleanBinding
Helper function to create a custom BooleanBinding.
Helper function to create a custom BooleanBinding.
Wraps a JavaFX Bindings.createBooleanBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- def createDoubleBinding(func: () => Double, dependencies: Observable*): DoubleBinding
Helper function to create a custom DoubleBinding.
Helper function to create a custom DoubleBinding.
Wraps a JavaFX Bindings.createDoubleBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- def createFloatBinding(func: () => Float, dependencies: Observable*): FloatBinding
Helper function to create a custom FloatBinding.
Helper function to create a custom FloatBinding.
Wraps a JavaFX Bindings.createFloatBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- def createIntegerBinding(func: () => Int, dependencies: Observable*): IntegerBinding
Helper function to create a custom IntegerBinding.
Helper function to create a custom IntegerBinding.
Wraps a JavaFX Bindings.createIntegerBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- def createLongBinding(func: () => Long, dependencies: Observable*): LongBinding
Helper function to create a custom LongBinding.
Helper function to create a custom LongBinding.
Wraps a JavaFX Bindings.createLongBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- def createObjectBinding[T](func: () => T, dependencies: Observable*): ObjectBinding[T]
Helper function to create a custom ObjectBinding.
Helper function to create a custom ObjectBinding.
Wraps a JavaFX Bindings.createObjectBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- def createStringBinding(func: () => String, dependencies: Observable*): StringBinding
Helper function to create a custom StringBinding.
Helper function to create a custom StringBinding.
Wraps a JavaFX Bindings.createStringBinding.
- func
The function that calculates the value of this binding
- dependencies
The dependencies of this binding
- returns
The generated binding
- Definition Classes
- Bindings
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def max(v1: ObservableNumberValue, values: ObservableNumberValue*): ObservableNumberValue
Returns the Lowest value among a collection of JavaFX
ObservableNumberValue
s.Returns the Lowest value among a collection of JavaFX
ObservableNumberValue
s.- v1
First Value
- values
Collection of values
- returns
The Lowest Value
- Definition Classes
- Bindings
- def min(v1: ObservableNumberValue, values: ObservableNumberValue*): ObservableNumberValue
Returns the highest value among a collection of JavaFX
ObservableNumberValue
s.Returns the highest value among a collection of JavaFX
ObservableNumberValue
s.- v1
First Value
- values
Collection of values
- returns
The highest Value
- Definition Classes
- Bindings
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def when(condition: => ObservableBooleanValue): ConditionBuilder
- condition
Function that returns a JavaFX
ObservableBooleanValue
- returns
A ConditionBuilder wrapping
condition
.
- Definition Classes
- Bindings
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
JFXApp3
. 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.