APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.layout

public final Enum HeaderButtonType

extends Enum<HeaderButtonType>
Class Inheritance
Imports
javafx.scene.Node, javafx.stage.Stage

Identifies the semantic type of a button in a custom HeaderBar, which enables integrations with the platform window manager. For example, hovering over a MAXIMIZE button on Windows will summon snap layouts.
Since
27
See Also
HeaderBar#setButtonType(Node, HeaderButtonType)

Field Summary

Modifier and TypeField and Description
public static final HeaderButtonType
CLOSE

Identifies the close button.

public static final HeaderButtonType
ICONIFY

Identifies the iconify button.

public static final HeaderButtonType
MAXIMIZE

Identifies the maximize button.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static HeaderButtonType
public static HeaderButtonType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLOSEback to summary
public static final HeaderButtonType CLOSE

Identifies the close button.

See Also
Stage#close()
ICONIFYback to summary
public static final HeaderButtonType ICONIFY

Identifies the iconify button.

See Also
Stage#isIconified(), Stage#setIconified(boolean)
MAXIMIZEback to summary
public static final HeaderButtonType MAXIMIZE

Identifies the maximize button.

This button toggles the Stage#isMaximized() or Stage#isFullScreen() property, depending on platform-specific invocation semantics. For example, on macOS the button will put the window into full-screen mode by default, but maximize it to cover the desktop when the option key is pressed.

If the window is maximized, the button will have the maximized pseudo-class.

See Also
Stage#isMaximized(), Stage#setMaximized(boolean), Stage#isFullScreen(), Stage#setFullScreen(boolean)

Constructor Detail

HeaderButtonTypeback to summary
private HeaderButtonType()

Method Detail

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