APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.glass.ui.gtk

pack-priv final Enum WindowDecorationTheme

extends Enum<WindowDecorationTheme>
Class Inheritance
Imports
com.sun.javafx.application.PlatformImpl, javafx.stage.StageStyle, java.util.Locale, .Map

The client-side window decoration theme used for StageStyle#EXTENDED windows.

Field Summary

Modifier and TypeField and Description
public static final WindowDecorationTheme
public static final WindowDecorationTheme
private static final Map<String, WindowDecorationTheme>
SIMILAR_THEMES

A mapping of platform theme names to the most similar window decoration theme.

private final String
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static WindowDecorationTheme
findBestTheme()

Determines the best window decoration theme for the current platform theme and desktop environment.

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

Field Detail

GNOMEback to summary
public static final WindowDecorationTheme GNOME
KDEback to summary
public static final WindowDecorationTheme KDE
SIMILAR_THEMESback to summary
private static final Map<String, WindowDecorationTheme> SIMILAR_THEMES

A mapping of platform theme names to the most similar window decoration theme.

stylesheetback to summary
private final String stylesheet
THEME_NAME_KEYback to summary
private static final String THEME_NAME_KEY

Constructor Detail

WindowDecorationThemeback to summary
private WindowDecorationTheme(String stylesheet)

Method Detail

findBestThemeback to summary
public static WindowDecorationTheme findBestTheme()

Determines the best window decoration theme for the current platform theme and desktop environment.

Since we can't ship decorations for all possible platform themes, we need to choose the theme most similar to the platform theme. If we can't choose a theme by name, we fall back to choosing a theme by determining the current desktop environment.

getStylesheetback to summary
public String getStylesheet()
valueOfback to summary
public static WindowDecorationTheme valueOf(String name)
valuesback to summary
public static WindowDecorationTheme[] values()