/** * PENDING: currently this resets at once - but it's a no-no, * because it happens during notification * * @param oldDate the old date to revert to */ private void revertValue(Date oldDate) { datePicker.getEditor().setValue(oldDate); } /**
/** * Returns the font that is associated with the editor of this date picker. */ @Override public Font getFont() { return getEditor().getFont(); }
/** * PENDING: currently this resets at once - but it's a no-no, * because it happens during notification * * @param oldDate the old date to revert to */ private void revertValue(Date oldDate) { datePicker.getEditor().setValue(oldDate); } /**
/** * Set the font for the editor associated with this date picker. */ @Override public void setFont(final Font font) { getEditor().setFont(font); }
/** * Set the font for the editor associated with this date picker. */ @Override public void setFont(final Font font) { getEditor().setFont(font); }
/** * Update properties which depend on the picker's enabled. */ protected void updateFromEnabledChanged() { boolean isEnabled = datePicker.isEnabled(); popupButton.setEnabled(isEnabled); datePicker.getEditor().setEnabled(isEnabled); }
protected void uninstallComponents() { JFormattedTextField editor = datePicker.getEditor(); if (editor != null) { datePicker.remove(editor); } if (popupButton != null) { datePicker.remove(popupButton); popupButton = null; } }
protected void uninstallComponents() { JFormattedTextField editor = datePicker.getEditor(); if (editor != null) { datePicker.remove(editor); } if (popupButton != null) { datePicker.remove(popupButton); popupButton = null; } }
protected void uninstallComponents() { JFormattedTextField editor = datePicker.getEditor(); if (editor != null) { datePicker.remove(editor); } if (popupButton != null) { datePicker.remove(popupButton); popupButton = null; } }
/** * Sets the editor value to the model's selectedDate. */ private void updateEditorValue() { datePicker.getEditor().setValue(datePicker.getMonthView().getSelectionDate()); }
/** * Sets the editor value to the model's selectedDate. */ private void updateEditorValue() { datePicker.getEditor().setValue(datePicker.getMonthView().getSelectionDate()); }
/** * Sets the editor value to the model's selectedDate. */ private void updateEditorValue() { datePicker.getEditor().setValue(datePicker.getMonthView().getSelectionDate()); }
private void updateChildLocale(Locale locale) { if (locale != null) { datePicker.getEditor().setLocale(locale); datePicker.getLinkPanel().setLocale(locale); datePicker.getMonthView().setLocale(locale); } }
private void updateChildLocale(Locale locale) { if (locale != null) { datePicker.getEditor().setLocale(locale); datePicker.getLinkPanel().setLocale(locale); datePicker.getMonthView().setLocale(locale); } }
/** * Updates internals after picker's date property changed. */ protected void updateFromDateChanged() { Date visibleHook = datePicker.getDate() != null ? datePicker.getDate() : datePicker.getLinkDay(); datePicker.getMonthView().ensureDateVisible(visibleHook); datePicker.getEditor().setValue(datePicker.getDate()); }