Packages

p

org.scalafx

extras

package extras

Helper methods for working with ScalaFX.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. extras
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def initFX(): Unit

    Attempt to initialize JavaFX Toolkit.

    Attempt to initialize JavaFX Toolkit. This is only needed when application is not started by JFXApp are JavaFX Application.

    When JavaFX toolkit is not initialized and you attempt to use JavaFX components you will get exception: java.lang.IllegalStateException: Toolkit not initialized.

  2. def offFXAndWait[R](op: ⇒ R): R

    Run operation op off FX application thread and wait for completion.

    Run operation op off FX application thread and wait for completion. If the current thread is not the FX application, the operation will be run on it (no new thread will ne created).

    op

    operation to be performed.

  3. def onFX[R](op: ⇒ R): Unit

    Run operation op on FX application thread.

    Run operation op on FX application thread. Return without waiting for the operation to complete.

    op

    operation to be performed.

  4. def onFXAndWait[R](op: ⇒ R): R

    Run operation op on FX application thread and wait for completion.

    Run operation op on FX application thread and wait for completion. If the current thread is the FX application, the operation will be run on it.

    op

    operation to be performed.

  5. def run[R](op: ⇒ R, name: String): Unit

    Runs an operation op on a separate thread.

    Runs an operation op on a separate thread. Exceptions during execution are ignored.

  6. def runTask[T](task: Task[T], name: String): Unit

    Run task on a named daemon thread.

  7. def showException(title: String, message: String, t: Throwable, owner: Window = null): Unit

    Show a modal dialog with an expandable details about an exception (stack trace).

    Show a modal dialog with an expandable details about an exception (stack trace).

    title

    dialog title

    message

    message shown in the dialog header.

    t

    exception.

    owner

    owner window that will be blacked by the dialog. Can be null.

  8. def showException(title: String, message: String, t: Throwable, owner: Node): Unit

    Show a modal dialog with an expandable details about an exception (stack trace).

    Show a modal dialog with an expandable details about an exception (stack trace).

    title

    dialog title

    message

    message shown in the dialog header.

    t

    exception.

    owner

    owner window that will be blacked by the dialog. Can be null.

Inherited from AnyRef

Inherited from Any

Ungrouped