if (dragController == null) {
dragController = new MonthViewPickupDragController(appointmentCanvas, true);
dragController.addDragHandler(new DragHandler() {
public void onDragEnd(DragEndEvent event) {
Appointment appt = ((AppointmentWidget) event.getContext().draggable).getAppointment();
calendarWidget.setCommittedAppointment(appt);
calendarWidget.fireUpdateEvent(appt);
}
public void onDragStart(DragStartEvent event) {
Appointment appt = ((AppointmentWidget) event.getContext().draggable).getAppointment();
calendarWidget.setRollbackAppointment(appt.clone());
}
public void onPreviewDragEnd(DragEndEvent event)
throws VetoDragException {
// do nothing