Search in sources :

Example 1 with JFXDatePickerSkin

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

the class JFXDatePickerBehavior method onAutoHide.

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

Aggregations

JFXDatePickerSkin (com.jfoenix.skins.JFXDatePickerSkin)1 DatePicker (javafx.scene.control.DatePicker)1