Top Description Fields Constructors Methods
com.sun.javafx.application

pack-priv final Enum WindowsHighContrastScheme

extends Enum<WindowsHighContrastScheme>
Class Inheritance
Imports
com.sun.javafx.PlatformUtil, java.util.Arrays, .List, .Locale, .ResourceBundle

Enumeration of possible high contrast scheme values.

For each scheme, a theme key is defined. These keys can be used in a resource bundle that defines the theme name values for supported locales.

The high contrast feature may not be available on all platforms.

Field Summary

Modifier and TypeField and Description
public static final WindowsHighContrastScheme
public static final WindowsHighContrastScheme
public static final WindowsHighContrastScheme
public static final WindowsHighContrastScheme
public static final WindowsHighContrastScheme
private static List<ResourceBundle>
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static WindowsHighContrastScheme

Returns:

the enum constant or NONE if not found
fromThemeName
(String
a string with the localized theme name (for the locale of the OS, not the JVM)
themeName
)

Given a theme name string, this method finds the possible enum constant for which the result of a function, applying its theme key, matches the theme name.

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

Field Detail

HIGH_CONTRAST_1back to summary
public static final WindowsHighContrastScheme HIGH_CONTRAST_1
HIGH_CONTRAST_2back to summary
public static final WindowsHighContrastScheme HIGH_CONTRAST_2
HIGH_CONTRAST_BLACKback to summary
public static final WindowsHighContrastScheme HIGH_CONTRAST_BLACK
HIGH_CONTRAST_WHITEback to summary
public static final WindowsHighContrastScheme HIGH_CONTRAST_WHITE
NONEback to summary
public static final WindowsHighContrastScheme NONE
resourceBundlesback to summary
private static List<ResourceBundle> resourceBundles
themeKeyback to summary
private final String themeKey

Constructor Detail

WindowsHighContrastSchemeback to summary
private WindowsHighContrastScheme(String themeKey)

Method Detail

fromThemeNameback to summary
pack-priv static WindowsHighContrastScheme fromThemeName(String themeName)

Given a theme name string, this method finds the possible enum constant for which the result of a function, applying its theme key, matches the theme name.

Parameters
themeName:String

a string with the localized theme name (for the locale of the OS, not the JVM)

Returns:WindowsHighContrastScheme

the enum constant or NONE if not found

valueOfback to summary
public static WindowsHighContrastScheme valueOf(String name)
valuesback to summary
public static WindowsHighContrastScheme[] values()