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

public Class MenuButtonSkin

extends MenuButtonSkinBase<MenuButton>
Class Inheritance
Imports
com.sun.javafx.scene.control.ContextMenuContent, .ListenerHelper, com.sun.javafx.scene.control.behavior.MenuButtonBehavior, javafx.event.ActionEvent, javafx.scene.AccessibleAttribute, javafx.scene.control.Control, .MenuButton, javafx.stage.WindowEvent

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

Field Summary

Modifier and TypeField and Description
pack-priv static final String
private final MenuButtonBehavior
Inherited from javafx.scene.control.skin.MenuButtonSkinBase:
arrowarrowButtonbehaveLikeButtonlabelpopuprequestFocusOnFirstMenuItem

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Overrides javafx.scene.control.skin.MenuButtonSkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

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

pack-priv MenuButtonBehavior
public Object
queryAccessibleAttribute(AccessibleAttribute
the requested attribute
attribute
,
Object...
optional list of parameters
parameters
)

Overrides javafx.scene.control.SkinBase.queryAccessibleAttribute.

This method is called by the assistive technology to request the value for an attribute.

Inherited from javafx.scene.control.skin.MenuButtonSkinBase:
computeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthlayoutChildrenputFocusOnFirstMenuItemrequestFocusOnFirstMenuItem

Field Detail

AUTOHIDEback to summary
pack-priv static final String AUTOHIDE
behaviorback to summary
private final MenuButtonBehavior behavior

Constructor Detail

Method Detail

disposeback to summary
public void dispose()

Overrides javafx.scene.control.skin.MenuButtonSkinBase.dispose.

Implements javafx.scene.control.Skin.dispose.

Doc from javafx.scene.control.skin.MenuButtonSkinBase.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
getBehaviorback to summary
pack-priv MenuButtonBehavior getBehavior()

Overrides javafx.scene.control.skin.MenuButtonSkinBase.getBehavior.

Annotations
@Override
queryAccessibleAttributeback to summary
public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)

Overrides javafx.scene.control.SkinBase.queryAccessibleAttribute.

Doc from javafx.scene.control.SkinBase.queryAccessibleAttribute.

This method is called by the assistive technology to request the value for an attribute.

This method is commonly overridden by subclasses to implement attributes that are required for a specific role.
If a particular attribute is not handled, the superclass implementation must be called.

Parameters
attribute:AccessibleAttribute

the requested attribute

parameters:Object[]

optional list of parameters

Returns:Object

the value for the requested attribute

Annotations
@Override