public class ChoiceBoxBehavior<T> extends BehaviorBase<ChoiceBox<T>>
Modifier and Type | Field and Description |
---|---|
protected static List<KeyBinding> |
CHOICE_BUTTON_BINDINGS
The key bindings for the ChoiceBox.
|
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
ChoiceBoxBehavior(ChoiceBox<T> control) |
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(String name)
Setup KeyBindings *
|
void |
cancel()
Invoked when "escape" key is released
|
void |
close() |
void |
dispose()
Called by a Skin when the Skin is disposed.
|
void |
mousePressed(MouseEvent e)
Invoked when a mouse press has occurred over the box.
|
void |
mouseReleased(MouseEvent e)
Invoked when a mouse release has occurred.
|
void |
select(int index) |
void |
showPopup() |
callActionForEvent, contextMenuRequested, focusChanged, getControl, matchActionForEvent, mouseDragged, mouseEntered, mouseExited, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final List<KeyBinding> CHOICE_BUTTON_BINDINGS
protected void callAction(String name)
callAction
in class BehaviorBase<ChoiceBox<T>>
public void dispose()
BehaviorBase
dispose
in class BehaviorBase<ChoiceBox<T>>
public void select(int index)
public void close()
public void showPopup()
public void mousePressed(MouseEvent e)
mousePressed
in class BehaviorBase<ChoiceBox<T>>
e
- the mouse eventpublic void mouseReleased(MouseEvent e)
mouseReleased
in class BehaviorBase<ChoiceBox<T>>
e
- the mouse eventpublic void cancel()
Copyright © 2020. All rights reserved.