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

public Class ToggleButtonSkin

extends LabeledSkinBase<ToggleButton>
Class Inheritance
Imports
com.sun.javafx.scene.control.behavior.BehaviorBase, .ToggleButtonBehavior, javafx.scene.control.Control, .ToggleButton

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

Field Summary

Modifier and TypeField and Description
private final BehaviorBase<ToggleButton>
Inherited from javafx.scene.control.skin.LabeledSkinBase:
ellipsisWidthgraphicgraphicPropertyChangedListenerinvalidTexttexttextWidth

Constructor Summary

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

Creates a new ToggleButtonSkin 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.

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

Field Detail

behaviorback to summary
private final BehaviorBase<ToggleButton> behavior

Constructor Detail

ToggleButtonSkinback to summary
public ToggleButtonSkin(ToggleButton control)

Creates a new ToggleButtonSkin 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:ToggleButton

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