public enum StageStyle extends Enum<StageStyle>
Stage
.Enum Constant and Description |
---|
DECORATED
Defines a normal
Stage style with a solid white background and platform decorations. |
TRANSPARENT
Defines a
Stage style with a transparent background and no decorations. |
UNDECORATED
Defines a
Stage style with a solid white background and no decorations. |
UNIFIED
Defines a
Stage style with platform decorations and eliminates the border between
client area and decorations. |
UTILITY
Defines a
Stage style with a solid white background and minimal
platform decorations used for a utility window. |
Modifier and Type | Method and Description |
---|---|
static StageStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StageStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StageStyle DECORATED
Stage
style with a solid white background and platform decorations.public static final StageStyle UNDECORATED
Stage
style with a solid white background and no decorations.public static final StageStyle TRANSPARENT
Stage
style with a transparent background and no decorations.public static final StageStyle UTILITY
Stage
style with a solid white background and minimal
platform decorations used for a utility window.public static final StageStyle UNIFIED
Stage
style with platform decorations and eliminates the border between
client area and decorations. The client area background is unified with the decorations.
This is a conditional feature, to check if it is supported see
Platform.isSupported(javafx.application.ConditionalFeature)
.
If the feature is not supported by the platform, this style downgrades to StageStyle.DECORATED
`
NOTE: To see the effect the Scene
covering the Stage
should have Color.TRANSPARENT
public static StageStyle[] values()
for (StageStyle c : StageStyle.values()) System.out.println(c);
public static StageStyle 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, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.