Platform.isSupported() function. Using a conditional feature
on a platform that does not support it will not cause an exception. In
general, the conditional feature will just be ignored. See the documentation
for each feature for more detail.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConditionalFeature | CONTROLS
Indicates that JavaFX classes providing UI controls are available on this platform. |
| public static final ConditionalFeature | EFFECT
Indicates that filter effects are available on the platform. |
| public static final ConditionalFeature | EXTENDED_WINDOW
Indicates that a system supports |
| public static final ConditionalFeature | FXML
Indicates that XML libraries are present in the JRE and that the FXML API is available on the platform. |
| public static final ConditionalFeature | GRAPHICS
Indicates that JavaFX classes providing graphics capabilities are available on this platform. |
| public static final ConditionalFeature | INPUT_METHOD
Indicates that text input method is available on the platform. |
| public static final ConditionalFeature | INPUT_MULTITOUCH
Indicates whether or not a touch screen providing multi-touch input is attached to the device on which JavaFX in running. |
| public static final ConditionalFeature | INPUT_POINTER
Indicates whether or not a relative motion pointer device such as a mouse, trackpad or trackball is attached. |
| public static final ConditionalFeature | INPUT_TOUCH
Indicates whether or not a touch screen is attached to the device on which JavaFX in running. |
| public static final ConditionalFeature | MEDIA
Indicates that the javafx.scene.media package is available on this platform. |
| public static final ConditionalFeature | SCENE3D
Indicates that 3D is available on the platform. |
| public static final ConditionalFeature | SHAPE_CLIP
Indicates that clipping against an arbitrary shape is available on the platform. |
| public static final ConditionalFeature | SWING
Indicates that the Swing library is present in the Java Runtime Environment and that Swing integration with JavaFX is available on the platform. |
| public static final ConditionalFeature | SWT
Indicates that SWT integration is available on the platform. |
| public static final ConditionalFeature | TRANSPARENT_WINDOW
Indicates that the system supports full window transparency. |
| public static final ConditionalFeature | TWO_LEVEL_FOCUS
Indicates whether or not controls should use two-level focus. |
| public static final ConditionalFeature | UNIFIED_WINDOW
Indicates that a system supports NOTE: Currently, supported on:
|
| public static final ConditionalFeature | VIRTUAL_KEYBOARD
Indicates whether an on-screen virtual keyboard is used for text input. |
| public static final ConditionalFeature | WEB
Indicates that the javafx.scene.web packages is available on this platform. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConditionalFeature | |
| public static ConditionalFeature[] |
| CONTROLS | back to summary |
|---|---|
| public static final ConditionalFeature CONTROLS Indicates that JavaFX classes providing UI controls are available on this platform.
| |
| EFFECT | back to summary |
|---|---|
| public static final ConditionalFeature EFFECT Indicates that filter effects are available on the platform. If an application uses an effect on a platform that does not support it, the effect will be ignored. | |
| EXTENDED_WINDOW | back to summary |
|---|---|
| public static final ConditionalFeature EXTENDED_WINDOW Indicates that a system supports This feature is currently supported on Windows, Linux, and macOS.
| |
| FXML | back to summary |
|---|---|
| public static final ConditionalFeature FXML Indicates that XML libraries are present in the JRE and that the FXML API is available on the platform. Note that it is possible for FXML APIs to be present but unusable if the underlying Java Runtime Environment does not have XML support. In this case Platform.isSupported(ConditionalFeature.FXML) wll return false.
| |
| GRAPHICS | back to summary |
|---|---|
| public static final ConditionalFeature GRAPHICS Indicates that JavaFX classes providing graphics capabilities are available on this platform.
| |
| INPUT_METHOD | back to summary |
|---|---|
| public static final ConditionalFeature INPUT_METHOD Indicates that text input method is available on the platform. If an application specifies an input method on a platform that does not support it, the input method will be ignored. | |
| INPUT_MULTITOUCH | back to summary |
|---|---|
| public static final ConditionalFeature INPUT_MULTITOUCH Indicates whether or not a touch screen providing multi-touch input is attached to the device on which JavaFX in running. On embedded platforms JavaFX makes an attempt to initialize this ConditionalFeature based on what input peripherals are attached. On desktop platforms this ConditionalFeature will typically default to false. If INPUT_MULTITOUCH is available then INPUT_TOUCH is also available.
| |
| INPUT_POINTER | back to summary |
|---|---|
| public static final ConditionalFeature INPUT_POINTER Indicates whether or not a relative motion pointer device such as a mouse, trackpad or trackball is attached. On embedded platforms JavaFX makes an attempt to initialize this ConditionalFeature based on what input peripherals are attached. On desktop platforms this ConditionalFeature will typically default to true.
| |
| INPUT_TOUCH | back to summary |
|---|---|
| public static final ConditionalFeature INPUT_TOUCH Indicates whether or not a touch screen is attached to the device on which JavaFX in running. On embedded platforms JavaFX makes an attempt to initialize this ConditionalFeature based on what input peripherals are attached. On desktop platforms this ConditionalFeature will typically default to false.
| |
| MEDIA | back to summary |
|---|---|
| public static final ConditionalFeature MEDIA Indicates that the javafx.scene.media package is available on this platform.
| |
| SCENE3D | back to summary |
|---|---|
| public static final ConditionalFeature SCENE3D Indicates that 3D is available on the platform. If an application attempts to use 3D transforms or a 3D camera on a platform that does not support 3D, then the transform or camera is ignored; it effectively becomes the identity transform. | |
| SHAPE_CLIP | back to summary |
|---|---|
| public static final ConditionalFeature SHAPE_CLIP Indicates that clipping against an arbitrary shape is available on the platform. If an application specifies a clip node on a platform that does not support clipping against an arbitrary shape, the node will be clipped to the bounds of the specified clip node rather than its geometric shape. | |
| SWING | back to summary |
|---|---|
| public static final ConditionalFeature SWING Indicates that the Swing library is present in the Java Runtime Environment and that Swing integration with JavaFX is available on the platform.
| |
| SWT | back to summary |
|---|---|
| public static final ConditionalFeature SWT Indicates that SWT integration is available on the platform. This tests for SWT integration with JavaFX, but does not test for the presence of the full SWT library.
| |
| TRANSPARENT_WINDOW | back to summary |
|---|---|
| public static final ConditionalFeature TRANSPARENT_WINDOW Indicates that the system supports full window transparency. Transparent windows will have only limited or no functionality on a platform that doesn't support it. Currently, this support is available on all desktop platforms except Linux systems without the XComposite extension. The XShape extension is used in that case, so the window edges are aliased.
| |
| TWO_LEVEL_FOCUS | back to summary |
|---|---|
| public static final ConditionalFeature TWO_LEVEL_FOCUS Indicates whether or not controls should use two-level focus. Two-level focus is when separate operations are needed in some controls to first enter a control and then to perform operations on the control. Two-level focus is needed on devices that provide directional arrow keys and a select key but do not provide keys for navigating between one control and another. On these devices a focused control may be either internally focused - in which case arrow keys operate on the control - or externally focused, in which case arrow keys are used to navigate focus to other controls. On embedded platforms JavaFX makes an attempt to initialize this ConditionalFeature based on what input peripherals are attached. On desktop platforms this ConditionalFeature will typically default to false.
| |
| UNIFIED_WINDOW | back to summary |
|---|---|
| public static final ConditionalFeature UNIFIED_WINDOW Indicates that a system supports NOTE: Currently, supported on:
| |
| VIRTUAL_KEYBOARD | back to summary |
|---|---|
| public static final ConditionalFeature VIRTUAL_KEYBOARD Indicates whether an on-screen virtual keyboard is used for text input. On embedded platforms JavaFX makes an attempt to initialize this ConditionalFeature based on what input peripherals are attached. On desktop platforms this ConditionalFeature will typically default to false.
| |
| WEB | back to summary |
|---|---|
| public static final ConditionalFeature WEB Indicates that the javafx.scene.web packages is available on this platform.
| |
| ConditionalFeature | back to summary |
|---|---|
| private ConditionalFeature() | |
| valueOf | back to summary |
|---|---|
| public static ConditionalFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ConditionalFeature[] values() | |