APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.scene.control.skin

public Class ButtonSkin

extends LabeledSkinBase<Button>
Class Inheritance
Imports
com.sun.javafx.scene.NodeHelper, com.sun.javafx.scene.control.behavior.BehaviorBase, .ButtonBehavior, com.sun.javafx.scene.control.skin.Utils, javafx.beans.value.ChangeListener, .WeakChangeListener, javafx.scene.Scene, javafx.scene.control.Button, .ContextMenu, .Control, javafx.scene.input.KeyCode, .KeyCodeCombination

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

Field Summary

Modifier and TypeField and Description
private final BehaviorBase<Button>
private KeyCodeCombination
pack-priv Runnable
private KeyCodeCombination
pack-priv Runnable
pack-priv ChangeListener<Scene>
pack-priv WeakChangeListener<Scene>
Inherited from javafx.scene.control.skin.LabeledSkinBase:
ellipsisWidthgraphicgraphicPropertyChangedListenerinvalidTexttexttextWidth

Constructor Summary

AccessConstructor and Description
public
ButtonSkin(Button
The control that this skin should be installed onto.
control
)

Creates a new ButtonSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Overrides javafx.scene.control.skin.LabeledSkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

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

private void
setCancelButton(boolean isCancel)

private void
setCancelButton(Scene scene, boolean isCancel)

private void
setDefaultButton(boolean isDefault)

private void
setDefaultButton(Scene scene, boolean isDefault)

Inherited from javafx.scene.control.skin.LabeledSkinBase:
bottomLabelPaddingcomputeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthisIgnoreGraphicisIgnoreTextlayoutChildrenlayoutLabelInArealayoutLabelInArealeftLabelPaddingmnemonicTargetChangedqueryAccessibleAttributerightLabelPaddingtopLabelPaddingupdateChildrenupdateDisplayedText

Field Detail

behaviorback to summary
private final BehaviorBase<Button> behavior
cancelAcceleratorKeyCodeCombinationback to summary
private KeyCodeCombination cancelAcceleratorKeyCodeCombination
cancelButtonRunnableback to summary
pack-priv Runnable cancelButtonRunnable
defaultAcceleratorKeyCodeCombinationback to summary
private KeyCodeCombination defaultAcceleratorKeyCodeCombination
defaultButtonRunnableback to summary
pack-priv Runnable defaultButtonRunnable
sceneChangeListenerback to summary
pack-priv ChangeListener<Scene> sceneChangeListener
weakSceneChangeListenerback to summary
pack-priv WeakChangeListener<Scene> weakSceneChangeListener

Constructor Detail

ButtonSkinback to summary
public ButtonSkin(Button control)

Creates a new ButtonSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.

Parameters
control:Button

The control that this skin should be installed onto.

Method Detail

disposeback to summary
public void dispose()

Overrides javafx.scene.control.skin.LabeledSkinBase.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
setCancelButtonback to summary
private void setCancelButton(boolean isCancel)
setCancelButtonback to summary
private void setCancelButton(Scene scene, boolean isCancel)
setDefaultButtonback to summary
private void setDefaultButton(boolean isDefault)
setDefaultButtonback to summary
private void setDefaultButton(Scene scene, boolean isDefault)