Search in sources :

Example 1 with JFXColorPickerSkin

use of com.jfoenix.skins.JFXColorPickerSkin in project JFoenix by jfoenixadmin.

the class JFXColorPickerBehavior method onAutoHide.

/**
 ************************************************************************
 *                                                                        *
 * Mouse Events handling (when losing focus)                              *
 *                                                                        *
 ************************************************************************
 */
@Override
public void onAutoHide() {
    ColorPicker colorPicker = (ColorPicker) getControl();
    JFXColorPickerSkin cpSkin = (JFXColorPickerSkin) colorPicker.getSkin();
    cpSkin.syncWithAutoUpdate();
    if (!colorPicker.isShowing()) {
        super.onAutoHide();
    }
}
Also used : ColorPicker(javafx.scene.control.ColorPicker) JFXColorPickerSkin(com.jfoenix.skins.JFXColorPickerSkin)

Aggregations

JFXColorPickerSkin (com.jfoenix.skins.JFXColorPickerSkin)1 ColorPicker (javafx.scene.control.ColorPicker)1