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.Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
static ConditionalFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConditionalFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConditionalFeature GRAPHICS
public static final ConditionalFeature CONTROLS
public static final ConditionalFeature MEDIA
public static final ConditionalFeature WEB
public static final ConditionalFeature SWT
public static final ConditionalFeature SWING
public static final ConditionalFeature FXML
public static final ConditionalFeature SCENE3D
public static final ConditionalFeature EFFECT
public static final ConditionalFeature SHAPE_CLIP
public static final ConditionalFeature INPUT_METHOD
public static final ConditionalFeature TRANSPARENT_WINDOW
NOTE: Currently, this support is available on all platforms except Linux systems without the XComposite extension. The XShape extension is used in that case, so the window edges are aliased.
NOTE: In an environment with enabled security manager (for example in applet mode), usage of transparent windows is protected by security checks. If the application doesn't have the required permissions, it won't be able to use this feature and the system will appear as if the support for transparent windows wasn't implemented. This includes returning false from the Platform.isSupported(TRANSPARENT_WINDOW) test.
public static final ConditionalFeature UNIFIED_WINDOW
StageStyle.UNIFIED
NOTE: Currently, supported on:
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.
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.
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.
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.
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.
public static ConditionalFeature[] values()
for (ConditionalFeature c : ConditionalFeature.values()) System.out.println(c);
public static ConditionalFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.