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

public Class ChoiceBoxBehavior<T>

extends BehaviorBase<ChoiceBox<T>>
Class Inheritance
Imports
javafx.scene.control.ChoiceBox, .SelectionModel, com.sun.javafx.scene.control.skin.Utils, com.sun.javafx.scene.control.inputmap.InputMap, javafx.scene.input.KeyEvent, .MouseButton, .MouseEvent

ChoiceBoxBehavior - default implementation

Field Summary

Modifier and TypeField and Description
private final InputMap<ChoiceBox<T>>
private TwoLevelFocusComboBehavior

Constructor Summary

AccessConstructor and Description
public
ChoiceBoxBehavior(ChoiceBox<T> control)

Setup KeyBindings *

Method Summary

Modifier and TypeMethod and Description
public void
cancel()

Invoked when "escape" key is released

public void
public void
public InputMap<ChoiceBox<T>>
private void
keyPressed(KeyEvent e)

This function is invoked when an appropriate keystroke occurs which causes this box to be armed if it is not already armed by a mouse press.

private void
keyReleased(KeyEvent e)

Invoked when a valid keystroke release occurs which causes the box to fire if it was armed by a keyPress.

public void
mousePressed(MouseEvent e)

Invoked when a mouse press has occurred over the box.

public void
mouseReleased(MouseEvent e)

Invoked when a mouse release has occurred.

public void
select(int index)

public void
Inherited from com.sun.javafx.scene.control.behavior.BehaviorBase:
addDefaultChildMapaddDefaultMappingaddDefaultMappingaddDefaultMappingcreateInputMapgetNodeisRTLremoveMappingrtlrtl

Field Detail

choiceBoxInputMapback to summary
private final InputMap<ChoiceBox<T>> choiceBoxInputMap
tlFocusback to summary
private TwoLevelFocusComboBehavior tlFocus

Constructor Detail

ChoiceBoxBehaviorback to summary
public ChoiceBoxBehavior(ChoiceBox<T> control)

Setup KeyBindings *

Method Detail

cancelback to summary
public void cancel()

Invoked when "escape" key is released

closeback to summary
public void close()
disposeback to summary
public void dispose()

Overrides com.sun.javafx.scene.control.behavior.BehaviorBase.dispose.

Annotations
@Override
getInputMapback to summary
public InputMap<ChoiceBox<T>> getInputMap()

Implements abstract com.sun.javafx.scene.control.behavior.BehaviorBase.getInputMap.

Annotations
@Override
keyPressedback to summary
private void keyPressed(KeyEvent e)

This function is invoked when an appropriate keystroke occurs which causes this box to be armed if it is not already armed by a mouse press.

keyReleasedback to summary
private void keyReleased(KeyEvent e)

Invoked when a valid keystroke release occurs which causes the box to fire if it was armed by a keyPress.

mousePressedback to summary
public void mousePressed(MouseEvent e)

Invoked when a mouse press has occurred over the box. In addition to potentially arming the Button, this will transfer focus to the box

mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Invoked when a mouse release has occurred. We determine whether this was done in a manner that would fire the box's action. This happens only if the box was armed by a corresponding mouse press.

selectback to summary
public void select(int index)
showPopupback to summary
public void showPopup()