public class ComboBoxBaseBehavior<T> extends BehaviorBase<ComboBoxBase<T>>
Modifier and Type | Field and Description |
---|---|
protected static List<KeyBinding> |
COMBO_BOX_BASE_BINDINGS |
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
ComboBoxBaseBehavior(ComboBoxBase<T> comboBox,
List<KeyBinding> bindings) |
Modifier and Type | Method and Description |
---|---|
void |
arm() |
protected void |
callAction(String name)
Called to invoke the action associated with the given name.
|
protected void |
callActionForEvent(KeyEvent e)
Invokes the appropriate action for this key event.
|
protected void |
cancelEdit(KeyEvent event) |
void |
disarm() |
void |
dispose()
Called by a Skin when the Skin is disposed.
|
protected void |
focusChanged()
*
Focus change handling *
*
|
protected void |
forwardToParent(KeyEvent event) |
void |
hide() |
void |
mouseEntered(MouseEvent e)
Invoked by a Skin when the body of the control has been entered by
the mouse.
|
void |
mouseExited(MouseEvent e)
Invoked by a Skin when the body of the control has been exited by
the mouse.
|
void |
mousePressed(MouseEvent e)
*
Mouse Events *
*
|
void |
mouseReleased(MouseEvent e)
Invoked by a Skin when the body of the control has been released by
the mouse.
|
void |
onAutoHide() |
void |
show() |
contextMenuRequested, getControl, matchActionForEvent, mouseDragged, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final List<KeyBinding> COMBO_BOX_BASE_BINDINGS
public ComboBoxBaseBehavior(ComboBoxBase<T> comboBox, List<KeyBinding> bindings)
public void dispose()
BehaviorBase
dispose
in class BehaviorBase<ComboBoxBase<T>>
protected void focusChanged()
focusChanged
in class BehaviorBase<ComboBoxBase<T>>
protected void callActionForEvent(KeyEvent e)
BehaviorBase
callActionForEvent
in class BehaviorBase<ComboBoxBase<T>>
e
- The key event. Must not be null.protected void callAction(String name)
BehaviorBase
When a KeyEvent is handled, it is first passed through callActionForEvent which resolves which "action" should be executed based on the key event. This action is indicated by name. This name is then passed to this function which is responsible for invoking the right function based on the name.
callAction
in class BehaviorBase<ComboBoxBase<T>>
protected void forwardToParent(KeyEvent event)
protected void cancelEdit(KeyEvent event)
public void mousePressed(MouseEvent e)
mousePressed
in class BehaviorBase<ComboBoxBase<T>>
e
- the mouse eventpublic void mouseReleased(MouseEvent e)
BehaviorBase
mouseReleased
in class BehaviorBase<ComboBoxBase<T>>
e
- the mouse eventpublic void mouseEntered(MouseEvent e)
BehaviorBase
mouseEntered
in class BehaviorBase<ComboBoxBase<T>>
e
- the mouse eventpublic void mouseExited(MouseEvent e)
BehaviorBase
mouseExited
in class BehaviorBase<ComboBoxBase<T>>
e
- the mouse eventpublic void show()
public void hide()
public void onAutoHide()
public void arm()
public void disarm()
Copyright © 2020. All rights reserved.