trait Bindings extends AnyRef
Contains Methods for Bindings.
- Source
- Bindings.scala
- Alphabetic
- By Inheritance
- Bindings
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
BooleanConditionBuilder
extends AnyRef
- Attributes
- protected
-
class
ConditionBuilder
extends AnyRef
- Attributes
- protected
-
class
NumberConditionBuilder
extends AnyRef
- Attributes
- protected
-
class
ObjectConditionBuilder
[T] extends AnyRef
- Attributes
- protected
-
class
StringConditionBuilder
extends AnyRef
- Attributes
- protected
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
when(condition: ⇒ ObservableBooleanValue): ConditionBuilder
- condition
Function that returns a JavaFX
ObservableBooleanValue
- returns
A ConditionBuilder wrapping
condition
.
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.