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

public Class HeaderButtonOverlay

extends Region
Class Inheritance
Known Direct Subclasses
com.sun.glass.ui.win.WinHeaderButtonOverlay
Imports
com.sun.glass.events.MouseEvent, javafx.beans.property.BooleanProperty, .DoubleProperty, .ObjectProperty, .ReadOnlyObjectProperty, .SimpleBooleanProperty, .SimpleDoubleProperty, .SimpleObjectProperty, javafx.beans.value.ObservableValue, javafx.css.CssMetaData, .PseudoClass, .SimpleStyleableDoubleProperty, .SimpleStyleableIntegerProperty, .SimpleStyleableObjectProperty, .StyleConverter, .Styleable, .StyleableDoubleProperty, .StyleableIntegerProperty, .StyleableObjectProperty, .StyleableProperty, javafx.event.Event, javafx.geometry.Dimension2D, .HPos, .Insets, .VPos, javafx.scene.Node, .Scene, javafx.scene.layout.HeaderBar, .HeaderButtonType, .Region, javafx.stage.Stage, .StageStyle, .WindowEvent, javafx.util.Subscription, java.util.ArrayList, .Comparator, .List, java.util.stream.Stream

Contains the visuals and behaviors for the minimize/maximize/close buttons on an StageStyle#EXTENDED window for platforms that use client-side decorations (Windows and Linux/GTK). This control supports left-to-right and right-to-left orientations, as well as a customizable layout order of buttons.

Substructure

CSS properties of -FX-INTERNAL-header-button-container
CSS propertyValuesDefaultComment
-fx-button-placement[ left | right ]right Specifies the placement of the header buttons on the left or the right side of the window.
-fx-button-vertical-alignment[ center | stretch ]center Specifies the vertical alignment of the header buttons, either centering the buttons within the preferred height or stretching the buttons to fill the preferred height.
-fx-button-default-height<double>0 Specifies the default height of the header buttons, which is used when the application does not specify a preferred button height.
CSS properties of -FX-INTERNAL-iconify-button, -FX-INTERNAL-maximize-button, -FX-INTERNAL-close-button
CSS propertyValuesDefaultComment
-fx-button-order<integer>0/1/2 Specifies the layout order of a button relative to the other buttons. Lower values are laid out before higher values.
Conditional style classes of window buttons
Style classApplies toComment
.dark all buttons This style class will be present if HeaderBar#systemColorSchemeProperty(Stage) or Scene.Preferences#colorSchemeProperty() specifies a dark color scheme.
.restore-FX-INTERNAL-maximize-button This style class will be present if Stage#isMaximized() is true

Implementation Note

This control is used by the WinWindow.createHeaderButtonOverlay() and GtkWindow.createHeaderButtonOverlay() implementations for StageStyle#EXTENDED windows. It is not used by the macOS implementation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
HeaderButtonOverlay.ButtonLayoutInfo

Contains the sizes of the window buttons, the total width and height of the window button area, and its placement.

private static enum
private class
private static class
HeaderButtonOverlay.ButtonSizeInfo

Contains the computed size for a window button.

private static enum

Field Summary

Modifier and TypeField and Description
private static final PseudoClass
private static final CssMetaData<HeaderButtonOverlay, Number>
private static final CssMetaData<HeaderButtonOverlay, HeaderButtonOverlay.ButtonPlacement>
private static final CssMetaData<HeaderButtonOverlay, HeaderButtonOverlay.ButtonVerticalAlignment>
private Node
private final BooleanProperty
buttonDarkStyle

Specifies whether header buttons should use a dark style.

private final StyleableDoubleProperty
buttonDefaultHeight

Specifies the default height of header buttons.

private final StyleableObjectProperty<HeaderButtonOverlay.ButtonPlacement>
buttonPlacement

Specifies the placement of the header buttons on the left or the right side of the window.

private final DoubleProperty
buttonPrefHeight

Specifies the preferred height of header buttons.

private final StyleableObjectProperty<HeaderButtonOverlay.ButtonVerticalAlignment>
buttonVerticalAlignment

Specifies the vertical alignment of the header buttons.

private final HeaderButtonOverlay.ButtonRegion
private static final String
private static final PseudoClass
private final HeaderButtonOverlay.ButtonRegion
private final HeaderButtonOverlay.ButtonLayoutInfo
private final HeaderButtonOverlay.ButtonRegion
private static final List<CssMetaData<?, ?>>
private final ObjectProperty<HeaderButtonMetrics>
metrics

The metrics (placement and size) of header buttons.

private final boolean
private final List<HeaderButtonOverlay.ButtonRegion>
orderedButtons

Contains the buttons in the order as they will appear on the window.

private static final PseudoClass
private static final String
private final boolean
private final Subscription
private final boolean
private static final String
Inherited from javafx.scene.layout.Region:
USE_COMPUTED_SIZEUSE_PREF_SIZE

Constructor Summary

AccessConstructor and Description
public
HeaderButtonOverlay(ObservableValue<String> stylesheet, boolean modalOrOwned, boolean utility, boolean rightToLeft)

Method Summary

Modifier and TypeMethod and Description
private static double
private static double
boundedSize(double min, double pref, double max)

Hides javafx.scene.layout.Region.boundedSize.

Computes the value based on the given min and max values.

private static double
public HeaderButtonType

Returns:

the ButtonType or null
buttonAt
(double
the X coordinate, in pixels relative to the window
x
,
double
the Y coordinate, in pixels relative to the window
y
)

Classifies and returns the button type at the specified coordinate, or returns null if the specified coordinate does not intersect a button.

public BooleanProperty
public DoubleProperty
public void
private void
ensureRegionPrefHeight(Region region, double height)

protected Region
private double
getButtonOffsetY(double buttonHeight)

public List<CssMetaData<? extends Styleable, ?>>
getCssMetaData()

Overrides javafx.scene.layout.Region.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

private double
private void
public boolean

Returns:

true if the event was handled, false otherwise
handleMouseEvent
(int
the event type
type
,
int
the button type
button
,
double
the X coordinate, in pixels relative to the window
x
,
double
the Y coordinate, in pixels relative to the window
y
)

Handles the specified mouse event.

private void
private void
private void
protected void
layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

public ReadOnlyObjectProperty<HeaderButtonMetrics>
private void
onFocusedChanged(boolean focused)

private void
onMaximizedChanged(boolean maximized)

private void
onResizableChanged(boolean resizable)

private void
toggleStyleClass(Node node, String styleClass, boolean enabled)

private boolean
private void
private void
private void
public boolean
usesMirroring()

Overrides javafx.scene.Node.usesMirroring.

Determines whether a node should be mirrored when node orientation is right-to-left.

Inherited from javafx.scene.layout.Region:
backgroundPropertyborderPropertycacheShapePropertycenterShapePropertycomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetBackgroundgetBordergetClassCssMetaDatagetHeightgetInsetsgetMaxHeightgetMaxWidthgetMinHeightgetMinWidthgetOpaqueInsetsgetPaddinggetPrefHeightgetPrefWidthgetShapegetUserAgentStylesheetgetWidthheightPropertyinsetsPropertyisCacheShapeisCenterShapeisResizableisScaleShapeisSnapToPixellayoutInArealayoutInArealayoutInArealayoutInAreamaxHeightmaxHeightPropertymaxWidthmaxWidthPropertyminHeightminHeightPropertyminWidthminWidthPropertyopaqueInsetsPropertypaddingPropertypositionInAreapositionInAreaprefHeightprefHeightPropertyprefWidthprefWidthPropertyresizescaleShapePropertysetBackgroundsetBordersetCacheShapesetCenterShapesetHeightsetMaxHeightsetMaxSizesetMaxWidthsetMinHeightsetMinSizesetMinWidthsetOpaqueInsetssetPaddingsetPrefHeightsetPrefSizesetPrefWidthsetScaleShapesetShapesetSnapToPixelsetWidthshapePropertysnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYsnapToPixelPropertywidthProperty

Field Detail

ACTIVE_PSEUDOCLASSback to summary
private static final PseudoClass ACTIVE_PSEUDOCLASS
BUTTON_DEFAULT_HEIGHT_METADATAback to summary
private static final CssMetaData<HeaderButtonOverlay, Number> BUTTON_DEFAULT_HEIGHT_METADATA
BUTTON_PLACEMENT_METADATAback to summary
private static final CssMetaData<HeaderButtonOverlay, HeaderButtonOverlay.ButtonPlacement> BUTTON_PLACEMENT_METADATA
BUTTON_VERTICAL_ALIGNMENT_METADATAback to summary
private static final CssMetaData<HeaderButtonOverlay, HeaderButtonOverlay.ButtonVerticalAlignment> BUTTON_VERTICAL_ALIGNMENT_METADATA
buttonAtMouseDownback to summary
private Node buttonAtMouseDown
buttonDarkStyleback to summary
private final BooleanProperty buttonDarkStyle

Specifies whether header buttons should use a dark style.

buttonDefaultHeightback to summary
private final StyleableDoubleProperty buttonDefaultHeight

Specifies the default height of header buttons.

This property corresponds to the -fx-button-default-height CSS property.

buttonPlacementback to summary
private final StyleableObjectProperty<HeaderButtonOverlay.ButtonPlacement> buttonPlacement

Specifies the placement of the header buttons on the left or the right side of the window.

This property corresponds to the -fx-button-placement CSS property.

buttonPrefHeightback to summary
private final DoubleProperty buttonPrefHeight

Specifies the preferred height of header buttons.

Negative values are interpreted as "no preference", which causes the buttons to be laid out with their preferred height set to the value of buttonDefaultHeight.

buttonVerticalAlignmentback to summary
private final StyleableObjectProperty<HeaderButtonOverlay.ButtonVerticalAlignment> buttonVerticalAlignment

Specifies the vertical alignment of the header buttons.

This property corresponds to the -fx-button-vertical-alignment CSS property.

closeButtonback to summary
private final HeaderButtonOverlay.ButtonRegion closeButton
DARK_STYLE_CLASSback to summary
private static final String DARK_STYLE_CLASS
HOVER_PSEUDOCLASSback to summary
private static final PseudoClass HOVER_PSEUDOCLASS
iconifyButtonback to summary
private final HeaderButtonOverlay.ButtonRegion iconifyButton
layoutInfoback to summary
private final HeaderButtonOverlay.ButtonLayoutInfo layoutInfo
maximizeButtonback to summary
private final HeaderButtonOverlay.ButtonRegion maximizeButton
METADATAback to summary
private static final List<CssMetaData<?, ?>> METADATA
metricsback to summary
private final ObjectProperty<HeaderButtonMetrics> metrics

The metrics (placement and size) of header buttons.

modalOrOwnedback to summary
private final boolean modalOrOwned
orderedButtonsback to summary
private final List<HeaderButtonOverlay.ButtonRegion> orderedButtons

Contains the buttons in the order as they will appear on the window. This list is automatically updated by the implementation of ButtonRegion#buttonOrder.

PRESSED_PSEUDOCLASSback to summary
private static final PseudoClass PRESSED_PSEUDOCLASS
RESTORE_STYLE_CLASSback to summary
private static final String RESTORE_STYLE_CLASS
rightToLeftback to summary
private final boolean rightToLeft
subscriptionsback to summary
private final Subscription subscriptions
utilityback to summary
private final boolean utility
UTILITY_STYLE_CLASSback to summary
private static final String UTILITY_STYLE_CLASS

Constructor Detail

HeaderButtonOverlayback to summary
public HeaderButtonOverlay(ObservableValue<String> stylesheet, boolean modalOrOwned, boolean utility, boolean rightToLeft)

Method Detail

boundedHeightback to summary
private static double boundedHeight(Node node)
boundedSizeback to summary
private static double boundedSize(double min, double pref, double max)

Hides javafx.scene.layout.Region.boundedSize.

Doc from javafx.scene.layout.Region.boundedSize.

Computes the value based on the given min and max values. We encode in this method the logic surrounding various edge cases, such as when the min is specified as greater than the max, or the max less than the min, or a pref value that exceeds either the max or min in their extremes.

If the min is greater than the max, then we want to make sure the returned value is the min. In other words, in such a case, the min becomes the only acceptable return value.

If the min and max values are well ordered, and the pref is less than the min then the min is returned. Likewise, if the values are well ordered and the pref is greater than the max, then the max is returned. If the pref lies between the min and the max, then the pref is returned.

boundedWidthback to summary
private static double boundedWidth(Node node)
buttonAtback to summary
public HeaderButtonType buttonAt(double x, double y)

Classifies and returns the button type at the specified coordinate, or returns null if the specified coordinate does not intersect a button.

Parameters
x:double

the X coordinate, in pixels relative to the window

y:double

the Y coordinate, in pixels relative to the window

Returns:HeaderButtonType

the ButtonType or null

buttonDarkStylePropertyback to summary
public BooleanProperty buttonDarkStyleProperty()
buttonPrefHeightPropertyback to summary
public DoubleProperty buttonPrefHeightProperty()
disposeback to summary
public void dispose()
ensureRegionPrefHeightback to summary
private void ensureRegionPrefHeight(Region region, double height)
getButtonGlyphback to summary
protected Region getButtonGlyph(HeaderButtonType buttonType)
getButtonOffsetYback to summary
private double getButtonOffsetY(double buttonHeight)
getCssMetaDataback to summary
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData()

Overrides javafx.scene.layout.Region.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

Doc from javafx.scene.layout.Region.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

Annotations
@Override
getEffectiveButtonHeightback to summary
private double getEffectiveButtonHeight()
handleMouseDownback to summary
private void handleMouseDown(Node node)
handleMouseEventback to summary
public boolean handleMouseEvent(int type, int button, double x, double y)

Handles the specified mouse event.

Parameters
type:int

the event type

button:int

the button type

x:double

the X coordinate, in pixels relative to the window

y:double

the Y coordinate, in pixels relative to the window

Returns:boolean

true if the event was handled, false otherwise

handleMouseExitback to summary
private void handleMouseExit()
handleMouseOverback to summary
private void handleMouseOver(Node button)
handleMouseUpback to summary
private void handleMouseUp(Node node, HeaderButtonType buttonType)
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
metricsPropertyback to summary
public ReadOnlyObjectProperty<HeaderButtonMetrics> metricsProperty()
onFocusedChangedback to summary
private void onFocusedChanged(boolean focused)
onMaximizedChangedback to summary
private void onMaximizedChanged(boolean maximized)
onResizableChangedback to summary
private void onResizableChanged(boolean resizable)
toggleStyleClassback to summary
private void toggleStyleClass(Node node, String styleClass, boolean enabled)
updateButtonLayoutInfoback to summary
private boolean updateButtonLayoutInfo()
updateButtonMetricsback to summary
private void updateButtonMetrics()
updateStyleClassback to summary
private void updateStyleClass()
updateStylesheetback to summary
private void updateStylesheet(String stylesheet)
usesMirroringback to summary
public boolean usesMirroring()

Overrides javafx.scene.Node.usesMirroring.

Doc from javafx.scene.Node.usesMirroring.

Determines whether a node should be mirrored when node orientation is right-to-left.

When a node is mirrored, the origin is automatically moved to the top right corner causing the node to layout children and draw from right to left using a mirroring transformation. Some nodes may wish to draw from right to left without using a transformation. These nodes will answer false and implement right-to-left orientation without using the automatic transformation.

Annotations
@Override
com.sun.glass.ui back to summary

private final Class HeaderButtonOverlay.ButtonLayoutInfo

extends Object
Class Inheritance

Contains the sizes of the window buttons, the total width and height of the window button area, and its placement. The horizontal layout offsets of the window buttons are not precomputed, as they depend on the window width.

Field Summary

Modifier and TypeField and Description
private final HeaderButtonOverlay.ButtonSizeInfo[]
private boolean
private final double[]
private double
private double

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public HeaderButtonOverlay.ButtonSizeInfo
buttonSizeAt(int i)

public double[]
public boolean
left()

public double
public double
pack-priv boolean
update(Region button1, double width1, double height1, Region button2, double width2, double height2, Region button3, double width3, double height3, double totalWidth, double totalHeight, boolean left)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

buttonSizesback to summary
private final HeaderButtonOverlay.ButtonSizeInfo[] buttonSizes
leftback to summary
private boolean left
tempback to summary
private final double[] temp
totalHeightback to summary
private double totalHeight
totalWidthback to summary
private double totalWidth

Constructor Detail

ButtonLayoutInfoback to summary
private ButtonLayoutInfo()

Method Detail

buttonSizeAtback to summary
public HeaderButtonOverlay.ButtonSizeInfo buttonSizeAt(int i)
getLayoutOffsetsForWidthback to summary
public double[] getLayoutOffsetsForWidth(double width)
leftback to summary
public boolean left()
totalHeightback to summary
public double totalHeight()
totalWidthback to summary
public double totalWidth()
updateback to summary
pack-priv boolean update(Region button1, double width1, double height1, Region button2, double width2, double height2, Region button3, double width3, double height3, double totalWidth, double totalHeight, boolean left)
com.sun.glass.ui back to summary

private final Enum HeaderButtonOverlay.ButtonPlacement

extends Enum<HeaderButtonOverlay.ButtonPlacement>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final HeaderButtonOverlay.ButtonPlacement
public static final HeaderButtonOverlay.ButtonPlacement

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

LEFTback to summary
public static final HeaderButtonOverlay.ButtonPlacement LEFT
RIGHTback to summary
public static final HeaderButtonOverlay.ButtonPlacement RIGHT

Constructor Detail

ButtonPlacementback to summary
private ButtonPlacement()

Method Detail

valueOfback to summary
public static HeaderButtonOverlay.ButtonPlacement valueOf(String name)
valuesback to summary
public static HeaderButtonOverlay.ButtonPlacement[] values()
com.sun.glass.ui back to summary

private Class HeaderButtonOverlay.ButtonRegion

extends Region
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final CssMetaData<HeaderButtonOverlay.ButtonRegion, Number>
private final StyleableIntegerProperty
buttonOrder

Specifies the layout order of this button relative to the other buttons.

private final Region
private static final List<CssMetaData<?, ?>>
private final HeaderButtonType
Inherited from javafx.scene.layout.Region:
USE_COMPUTED_SIZEUSE_PREF_SIZE

Constructor Summary

AccessConstructor and Description
pack-priv
ButtonRegion(HeaderButtonType type, String styleClass, int order)

Method Summary

Modifier and TypeMethod and Description
public int
public HeaderButtonType
public List<CssMetaData<? extends Styleable, ?>>
getCssMetaData()

Overrides javafx.scene.layout.Region.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

protected void
layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

Inherited from javafx.scene.layout.Region:
backgroundPropertyborderPropertycacheShapePropertycenterShapePropertycomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetBackgroundgetBordergetClassCssMetaDatagetHeightgetInsetsgetMaxHeightgetMaxWidthgetMinHeightgetMinWidthgetOpaqueInsetsgetPaddinggetPrefHeightgetPrefWidthgetShapegetUserAgentStylesheetgetWidthheightPropertyinsetsPropertyisCacheShapeisCenterShapeisResizableisScaleShapeisSnapToPixellayoutInArealayoutInArealayoutInArealayoutInAreamaxHeightmaxHeightPropertymaxWidthmaxWidthPropertyminHeightminHeightPropertyminWidthminWidthPropertyopaqueInsetsPropertypaddingPropertypositionInAreapositionInAreaprefHeightprefHeightPropertyprefWidthprefWidthPropertyresizescaleShapePropertysetBackgroundsetBordersetCacheShapesetCenterShapesetHeightsetMaxHeightsetMaxSizesetMaxWidthsetMinHeightsetMinSizesetMinWidthsetOpaqueInsetssetPaddingsetPrefHeightsetPrefSizesetPrefWidthsetScaleShapesetShapesetSnapToPixelsetWidthshapePropertysnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYsnapToPixelPropertywidthProperty

Field Detail

BUTTON_ORDER_METADATAback to summary
private static final CssMetaData<HeaderButtonOverlay.ButtonRegion, Number> BUTTON_ORDER_METADATA
buttonOrderback to summary
private final StyleableIntegerProperty buttonOrder

Specifies the layout order of this button relative to the other buttons. Buttons with a lower value are laid out before buttons with a higher value.

This property corresponds to the -fx-button-order CSS property.

glyphback to summary
private final Region glyph
METADATAback to summary
private static final List<CssMetaData<?, ?>> METADATA
typeback to summary
private final HeaderButtonType type

Constructor Detail

ButtonRegionback to summary
pack-priv ButtonRegion(HeaderButtonType type, String styleClass, int order)

Method Detail

getButtonOrderback to summary
public int getButtonOrder()
getButtonTypeback to summary
public HeaderButtonType getButtonType()
getCssMetaDataback to summary
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData()

Overrides javafx.scene.layout.Region.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

Doc from javafx.scene.layout.Region.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

Annotations
@Override
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.Parent.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
com.sun.glass.ui back to summary

private final Class HeaderButtonOverlay.ButtonSizeInfo

extends Object
Class Inheritance

Contains the computed size for a window button.

Field Summary

Modifier and TypeField and Description
private Region
private double
private double

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Region
public double
pack-priv boolean
update(Region button, double width, double height)

public double
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

buttonback to summary
private Region button
heightback to summary
private double height
widthback to summary
private double width

Constructor Detail

ButtonSizeInfoback to summary
private ButtonSizeInfo()

Method Detail

buttonback to summary
public Region button()
heightback to summary
public double height()
updateback to summary
pack-priv boolean update(Region button, double width, double height)
widthback to summary
public double width()
com.sun.glass.ui back to summary

private final Enum HeaderButtonOverlay.ButtonVerticalAlignment

extends Enum<HeaderButtonOverlay.ButtonVerticalAlignment>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final HeaderButtonOverlay.ButtonVerticalAlignment
public static final HeaderButtonOverlay.ButtonVerticalAlignment

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

CENTERback to summary
public static final HeaderButtonOverlay.ButtonVerticalAlignment CENTER
STRETCHback to summary
public static final HeaderButtonOverlay.ButtonVerticalAlignment STRETCH

Constructor Detail

ButtonVerticalAlignmentback to summary
private ButtonVerticalAlignment()

Method Detail

valueOfback to summary
public static HeaderButtonOverlay.ButtonVerticalAlignment valueOf(String name)
valuesback to summary
public static HeaderButtonOverlay.ButtonVerticalAlignment[] values()