Packages

  • package root

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8.

    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 to javafx.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 a stage that contains a scene. A stage roughly corresponds to a window in a typical UI environment. The scene holds UI content presented to the user. In the example below, the content is a pane with a single label component.

    package hello
    
    import scalafx.application.JFXApp3
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp3 {
    
      override def start(): Unit = {
        stage = new JFXApp3.PrimaryStage {
          title = "Hello"
          scene = new Scene {
            root = new BorderPane {
              padding = Insets(75)
              center = new Label("Hello World")
            }
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package beans

    Wraps javafx.beans package.

    Wraps javafx.beans package.

    Definition Classes
    scalafx
  • package binding

    Wraps javafx.beans.binding package.

    Wraps javafx.beans.binding package.

    Definition Classes
    beans
  • BindingIncludes
  • Bindings
  • BooleanBinding
  • BooleanExpression
  • BufferBinding
  • BufferExpression
  • MapBinding
  • MapExpression
  • NumberBinding
  • NumberExpression
  • ObjectBinding
  • ObjectExpression
  • SetBinding
  • SetExpression
  • StringBinding
  • StringExpression

object Bindings extends Bindings

Source
Bindings.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bindings
  2. Bindings
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class BooleanConditionBuilder extends AnyRef
    Attributes
    protected
    Definition Classes
    Bindings
  2. class ConditionBuilder extends AnyRef
    Attributes
    protected
    Definition Classes
    Bindings
  3. class NumberConditionBuilder extends AnyRef
    Attributes
    protected
    Definition Classes
    Bindings
  4. class ObjectConditionBuilder[T] extends AnyRef
    Attributes
    protected
    Definition Classes
    Bindings
  5. class StringConditionBuilder extends AnyRef
    Attributes
    protected
    Definition Classes
    Bindings

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(v1: ObservableNumberValue, values: ObservableNumberValue*): ObservableNumberValue

    Returns the sum of a collection of JavaFX ObservableNumberValues.

    Returns the sum of a collection of JavaFX ObservableNumberValues.

    v1

    First Value

    values

    Collection of values

    returns

    The Value sum.

    Definition Classes
    Bindings
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def max(v1: ObservableNumberValue, values: ObservableNumberValue*): ObservableNumberValue

    Returns the Lowest value among a collection of JavaFX ObservableNumberValues.

    Returns the Lowest value among a collection of JavaFX ObservableNumberValues.

    v1

    First Value

    values

    Collection of values

    returns

    The Lowest Value

    Definition Classes
    Bindings
  20. def min(v1: ObservableNumberValue, values: ObservableNumberValue*): ObservableNumberValue

    Returns the highest value among a collection of JavaFX ObservableNumberValues.

    Returns the highest value among a collection of JavaFX ObservableNumberValues.

    v1

    First Value

    values

    Collection of values

    returns

    The highest Value

    Definition Classes
    Bindings
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. def when(condition: => ObservableBooleanValue): ConditionBuilder

    condition

    Function that returns a JavaFX ObservableBooleanValue

    returns

    A ConditionBuilder wrapping condition.

    Definition Classes
    Bindings

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Bindings

Inherited from AnyRef

Inherited from Any

Ungrouped