Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class Platform
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
exit()
Causes the JavaFX application to terminate.
|
static boolean |
isFxApplicationThread()
Returns true if the calling thread is the JavaFX Application Thread.
|
static boolean |
isSupported(ConditionalFeature feature)
Queries whether a specific conditional feature is supported
by the platform.
|
static void |
runLater(java.lang.Runnable runnable)
Run the specified Runnable on the JavaFX Application Thread at some
unspecified
time in the future.
|
public static void runLater(java.lang.Runnable runnable)
runnable
- the Runnable whose run method will be executed on the
JavaFX Application Threadpublic static boolean isFxApplicationThread()
public static void exit()
Note: if the application is embedded in a browser, then this method may have no effect.
public static boolean isSupported(ConditionalFeature feature)
For example:
// Query whether filter effects are supported if (Platform.isSupported(ConditionalFeature.EFFECT)) { // use effects }
feature
- the conditional feature in question.Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to