Top Description Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public abstract Class MenuButtonBehaviorBase<C extends MenuButton>

extends ButtonBehavior<C extends MenuButton>
Class Inheritance
Known Direct Subclasses
com.sun.javafx.scene.control.behavior.SplitMenuButtonBehavior, com.sun.javafx.scene.control.behavior.MenuButtonBehavior
Imports
javafx.geometry.Side, javafx.scene.control.MenuButton, com.sun.javafx.scene.control.inputmap.InputMap, javafx.scene.input.KeyEvent, .MouseButton, .MouseEvent

The base behavior for a MenuButton.

Field Summary

Modifier and TypeField and Description
private final InputMap<C>

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public void
mousePressed(MouseEvent
the mouse press event
e
,
boolean
if true, this should act just like a button
behaveLikeButton
)

When a mouse button is pressed, we either want to behave like a button or show the popup.

public void
mouseReleased(MouseEvent
the mouse press event
e
,
boolean
if true, this should act just like a button
behaveLikeButton
)

Handles mouse release events.

protected void
private void
overrideTraversalInput(KeyEvent event)

* Key event handling * *

Inherited from com.sun.javafx.scene.control.behavior.ButtonBehavior:
disposegetInputMapkeyPressedkeyReleasedmouseEnteredmouseExitedmousePressedmouseReleased

Field Detail

buttonInputMapback to summary
private final InputMap<C> buttonInputMap

Hides com.sun.javafx.scene.control.behavior.ButtonBehavior.buttonInputMap.

Constructor Detail

Method Detail

mousePressedback to summary
public void mousePressed(MouseEvent e, boolean behaveLikeButton)

When a mouse button is pressed, we either want to behave like a button or show the popup. This will be called by the skin.

Parameters
e:MouseEvent

the mouse press event

behaveLikeButton:boolean

if true, this should act just like a button

mouseReleasedback to summary
public void mouseReleased(MouseEvent e, boolean behaveLikeButton)

Handles mouse release events. This will be called by the skin.

Parameters
e:MouseEvent

the mouse press event

behaveLikeButton:boolean

if true, this should act just like a button

openActionback to summary
protected void openAction()
overrideTraversalInputback to summary
private void overrideTraversalInput(KeyEvent event)

* Key event handling * *