/** Switches the calendar to the previous month. */
 private void previousMonth() {
   Calendar cal = calendarView.getCalendar();
   cal.add(Calendar.MONTH, -1);
   calendarView.setFirstDisplayedDay(cal.getTime());
 }
 /** Switches the calendar to the next year. */
 private void nextYear() {
   Calendar cal = calendarView.getCalendar();
   cal.add(Calendar.YEAR, +1);
   calendarView.setFirstDisplayedDay(cal.getTime());
 }
 /** Switches the calendar to the current date */
 private void today() {
   Calendar cal = Calendar.getInstance();
   calendarView.setFirstDisplayedDay(cal.getTime());
 }