APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.javafx

public final Enum PreviewFeature

extends Enum<PreviewFeature>
Class Inheritance
Imports
com.sun.javafx.runtime.VersionInfo, java.util.HashSet, .Set

Using a preview feature requires an opt-in from application developers by specifying the javafx.enablePreview=true system property. This class verifies that the application has opted into preview features.

Field Summary

Modifier and TypeField and Description
private static final String
private static final boolean
private static final Set<PreviewFeature>
private final String
private static final String
private static final boolean

Constructor Summary

AccessConstructor and Description
private
PreviewFeature(String featureName)

Method Summary

Modifier and TypeMethod and Description
public void
checkEnabled()

Verifies that preview features are enabled, and throws an exception otherwise.

public static PreviewFeature
public static PreviewFeature[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ENABLE_PREVIEW_PROPERTYback to summary
private static final String ENABLE_PREVIEW_PROPERTY
enabledback to summary
private static final boolean enabled
enabledFeaturesback to summary
private static final Set<PreviewFeature> enabledFeatures
featureNameback to summary
private final String featureName
SUPPRESS_WARNING_PROPERTYback to summary
private static final String SUPPRESS_WARNING_PROPERTY
suppressWarningback to summary
private static final boolean suppressWarning

Constructor Detail

PreviewFeatureback to summary
private PreviewFeature(String featureName)

Method Detail

checkEnabledback to summary
public void checkEnabled()

Verifies that preview features are enabled, and throws an exception otherwise.

Unless suppressed with the javafx.suppressPreviewWarning=true system property, this method prints a one-time warning to the error output stream for every feature for which it is called.

Exceptions
RuntimeException:
if preview features are not enabled
valueOfback to summary
public static PreviewFeature valueOf(String name)
valuesback to summary
public static PreviewFeature[] values()