/** Creates a new instance of {@link JCalendar} */ public JCalendar() { intervalChangedListener = new ArrayList<IntervalChangedListener>(); config = new Config(); formater = new DefaultCalendarEventFormat(); selectedDay = Calendar.getInstance(); initGui(); bindListeners(); EventCollectionRepository.register(this); }
/** * Returns the selected day in the calendar * * @return */ public Date getSelectedDay() { return selectedDay.getTime(); }