package value
Wraps javafx.beans.value
package.
Individual JavaFX Observable*Value
are implemented as specializations of ObservableValue
,
generated by implicit conversions.
- Source
- package.scala
- Alphabetic
- By Inheritance
- value
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait ObservableValue[T, J] extends Observable with SFXDelegate[javafx.beans.value.ObservableValue[J]]
An ObservableValue is an entity that wraps a value and allows to observe the value for changes.
An ObservableValue is an entity that wraps a value and allows to observe the value for changes.
- T
Indicates Scala type that will be returned for this Observable.
- J
Indicates Java type to be wrapped by T. Eventually T and J could be the same.
Value Members
- object ObservableValue
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.