Enum Class ConditionalFeature
- All Implemented Interfaces:
-
Serializable,Comparable<ConditionalFeature>,Constable
public enum ConditionalFeature extends Enum<ConditionalFeature>
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.- Since:
- JavaFX 2.0
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
| Enum Constant | Description |
|---|---|
CONTROLS |
Indicates that JavaFX classes providing UI controls are available on this platform. |
EFFECT |
Indicates that filter effects are available on the platform. |
FXML |
Indicates that XML libraries are present in the JRE and that the FXML API is available on the platform. |
GRAPHICS |
Indicates that JavaFX classes providing graphics capabilities are available on this platform. |
INPUT_METHOD |
Indicates that text input method is available on the platform. |
INPUT_MULTITOUCH |
Indicates whether or not a touch screen providing multi-touch input is attached to the device on which JavaFX in running. |
INPUT_POINTER |
Indicates whether or not a relative motion pointer device such as a mouse, trackpad or trackball is attached. |
INPUT_TOUCH |
Indicates whether or not a touch screen is attached to the device on which JavaFX in running. |
MEDIA |
Indicates that the javafx.scene.media package is available on this platform. |
SCENE3D |
Indicates that 3D is available on the platform. |
SHAPE_CLIP |
Indicates that clipping against an arbitrary shape is available on the platform. |
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 |
Indicates that SWT integration is available on the platform. |
TRANSPARENT_WINDOW |
Indicates that the system supports full window transparency. |
TWO_LEVEL_FOCUS |
Indicates whether or not controls should use two-level focus. |
UNIFIED_WINDOW |
Indicates that a system supports StageStyle.UNIFIED
|
VIRTUAL_KEYBOARD |
Indicates whether an on-screen virtual keyboard is used for text input. |
WEB |
Indicates that the javafx.scene.web packages is available on this platform. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
static ConditionalFeature |
valueOf |
Returns the enum constant of this class with the specified name. |
static ConditionalFeature[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared. |
Enum Constant Details
GRAPHICS
public static final ConditionalFeature GRAPHICS
- Since:
- JavaFX 8.0
CONTROLS
public static final ConditionalFeature CONTROLS
- Since:
- JavaFX 8.0
MEDIA
public static final ConditionalFeature MEDIA
- Since:
- JavaFX 8.0
WEB
public static final ConditionalFeature WEB
- Since:
- JavaFX 8.0
SWT
public static final ConditionalFeature SWT
- Since:
- JavaFX 8.0
SWING
public static final ConditionalFeature SWING
- Since:
- JavaFX 8.0
FXML
public static final ConditionalFeature FXML
- Since:
- JavaFX 8.0
SCENE3D
public static final ConditionalFeature SCENE3D
EFFECT
public static final ConditionalFeature EFFECT
SHAPE_CLIP
public static final ConditionalFeature SHAPE_CLIP
INPUT_METHOD
public static final ConditionalFeature INPUT_METHOD
TRANSPARENT_WINDOW
public static final ConditionalFeature TRANSPARENT_WINDOW
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.
If a security manager is present, the application must have the FXPermission "createTransparentWindow" in order to create a transparent window. If the application doesn't have the required permission, it won't be able to use this feature; it will appear as if the the platform doesn't support transparent windows, and Platform.isSupported(TRANSPARENT_WINDOW) will return false.
- Since:
- JavaFX 2.2
UNIFIED_WINDOW
public static final ConditionalFeature UNIFIED_WINDOW
StageStyle.UNIFIED NOTE: Currently, supported on:
- Windows Vista+: a window is completely filled with the frozen glass effect
- Mac OS X: a window has the brushed-metal textured background
- Since:
- JavaFX 8.0
TWO_LEVEL_FOCUS
public static final ConditionalFeature TWO_LEVEL_FOCUS
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.
- Since:
- JavaFX 8.0
VIRTUAL_KEYBOARD
public static final ConditionalFeature VIRTUAL_KEYBOARD
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.
- Since:
- JavaFX 8.0
INPUT_TOUCH
public static final ConditionalFeature INPUT_TOUCH
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.
- Since:
- JavaFX 8.0
INPUT_MULTITOUCH
public static final ConditionalFeature INPUT_MULTITOUCH
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.
- Since:
- JavaFX 8.0
INPUT_POINTER
public static final ConditionalFeature INPUT_POINTER
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.
- Since:
- JavaFX 8.0
Method Details
values
public static ConditionalFeature[] values()
- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
public static ConditionalFeature valueOf(String name)
- Parameters:
-
name- the name of the enum constant to be returned. - Returns:
- the enum constant with the specified name
- Throws:
-
IllegalArgumentException- if this enum class has no constant with the specified name -
NullPointerException- if the argument is null
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.