} else {
calendar.setFocusChangeListener(null);
}
if (currentResolution > RESOLUTION_DAY) {
calendar.setTimeChangeListener(new TimeChangeListener() {
public void changed(int hour, int min, int sec, int msec) {
Date d = getDate();
if (d == null) {
// date currently null, use the value from calendarPanel
// (~ client time at the init of the widget)