Top Description Inners Fields Constructors Methods
javafx.scene.control.skin

public Class ButtonBarSkin

extends SkinBase<ButtonBar>
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .List, .Map, javafx.beans.InvalidationListener, javafx.beans.property.ObjectProperty, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.control.Button, .ButtonBar, .ButtonBar.ButtonData, .Control, .SkinBase, javafx.scene.layout.HBox, .Pane, .Priority, .Region, com.sun.javafx.scene.control.ListenerHelper, .Properties

Default skin implementation for the ButtonBar control.
Since
9
See Also
ButtonBar

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private InvalidationListener
private static final String
private static final double
private static final double
private HBox

Constructor Summary

AccessConstructor and Description
public
ButtonBarSkin(final ButtonBar
The control that this skin should be installed onto.
control
)

Creates a new ButtonBarSkin instance, installing the necessary child nodes into the Control children list.

Method Summary

Modifier and TypeMethod and Description
private Map<String, List<Node>>
buildButtonMap(List<? extends Node> buttons)

public void
dispose()

Overrides javafx.scene.control.SkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

Called when a previously installed skin is about to be removed from its associated control.

private void
private String
private void
private void
private void
sizeButton(Node btn, double min, double pref, double max)

private void
updateButtonListeners(List<? extends Node> list, boolean buttonsAdded)

Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutChildrenlayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

buttonDataListenerback to summary
private InvalidationListener buttonDataListener
CATEGORIZED_TYPESback to summary
private static final String CATEGORIZED_TYPES
DO_NOT_CHANGE_SIZEback to summary
private static final double DO_NOT_CHANGE_SIZE
GAP_SIZEback to summary
private static final double GAP_SIZE
layoutback to summary
private HBox layout

Constructor Detail

ButtonBarSkinback to summary
public ButtonBarSkin(final ButtonBar control)

Creates a new ButtonBarSkin instance, installing the necessary child nodes into the Control children list.

Parameters
control:ButtonBar

The control that this skin should be installed onto.

Method Detail

buildButtonMapback to summary
private Map<String, List<Node>> buildButtonMap(List<? extends Node> buttons)
disposeback to summary
public void dispose()

Overrides javafx.scene.control.SkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

Doc from javafx.scene.control.SkinBase.dispose.

Called when a previously installed skin is about to be removed from its associated control. This allows the skin to do clean up, like removing listeners and bindings, and undo any changes to the control's properties. After this method completes, getSkinnable() and getNode() should return null.

Calling dispose() more than once has no effect.

Annotations
@Override
doButtonOrderLayoutback to summary
private void doButtonOrderLayout(String buttonOrder)
getButtonTypeback to summary
private String getButtonType(Node btn)
layoutButtonsback to summary
private void layoutButtons()
resizeButtonsback to summary
private void resizeButtons()
sizeButtonback to summary
private void sizeButton(Node btn, double min, double pref, double max)
updateButtonListenersback to summary
private void updateButtonListeners(List<? extends Node> list, boolean buttonsAdded)
javafx.scene.control.skin back to summary

private sealed Enum ButtonBarSkin.Spacer

extends Enum<ButtonBarSkin.Spacer>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ButtonBarSkin.Spacer
public static final ButtonBarSkin.Spacer
public static final ButtonBarSkin.Spacer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
add(Pane pane, boolean edgeCase)

protected Node
create(boolean edgeCase)

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

Field Detail

DYNAMICback to summary
public static final ButtonBarSkin.Spacer DYNAMIC
FIXEDback to summary
public static final ButtonBarSkin.Spacer FIXED
NONEback to summary
public static final ButtonBarSkin.Spacer NONE

Constructor Detail

Spacerback to summary
private Spacer()

Method Detail

addback to summary
public void add(Pane pane, boolean edgeCase)
createback to summary
protected Node create(boolean edgeCase)
replaceback to summary
public ButtonBarSkin.Spacer replace(ButtonBarSkin.Spacer spacer)
valueOfback to summary
public static ButtonBarSkin.Spacer valueOf(String name)
valuesback to summary
public static ButtonBarSkin.Spacer[] values()