package extras
- Alphabetic
- By Inheritance
- extras
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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 JavaFXApplication
.When JavaFX toolkit is not initialized and you attempt to use JavaFX components you will get exception:
java.lang.IllegalStateException: Toolkit not initialized
. -
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.
-
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.
-
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.
-
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. -
def
runTask[T](task: Task[T], name: String): Unit
Run task on a named daemon thread.
-
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
.
-
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
.
Helper methods and classes to simplify ScalaFX use.
Basic helper methods are in the
org.scalafx.extras
package.