public class ColorPickerBehavior extends ComboBoxBaseBehavior<Color>
Modifier and Type | Field and Description |
---|---|
protected static String |
CLOSE_ACTION
Closes the Color Picker Palette.
|
protected static List<KeyBinding> |
COLOR_PICKER_BINDINGS |
protected static String |
OPEN_ACTION
Opens the Color Picker Palette.
|
COMBO_BOX_BASE_BINDINGS
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
ColorPickerBehavior(ColorPicker colorPicker) |
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(String name)
Called to invoke the action associated with the given name.
|
void |
onAutoHide()
*
Mouse Events *
*
|
arm, callActionForEvent, cancelEdit, disarm, dispose, focusChanged, forwardToParent, hide, mouseEntered, mouseExited, mousePressed, mouseReleased, show
contextMenuRequested, getControl, matchActionForEvent, mouseDragged, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final String OPEN_ACTION
protected static final String CLOSE_ACTION
protected static final List<KeyBinding> COLOR_PICKER_BINDINGS
public ColorPickerBehavior(ColorPicker colorPicker)
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 ComboBoxBaseBehavior<Color>
public void onAutoHide()
onAutoHide
in class ComboBoxBaseBehavior<Color>
Copyright © 2020. All rights reserved.