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 |
isImplicitExit()
Gets the value of the implicitExit attribute.
|
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.
|
static void |
setImplicitExit(boolean implicitExit)
Sets the implicitExit attribute to the specified value.
|
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 void setImplicitExit(boolean implicitExit)
Application.stop()
method and terminate the JavaFX
application thread.
If this attribute is false, the application will continue to
run normally even after the last window is closed, until the
application calls exit()
.
The default value is true.implicitExit
- a flag indicating whether or not to implicitly exit
when the last window is closed.public static boolean isImplicitExit()
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, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to