}
@SuppressWarnings("deprecation")
public void dragEnd() {
AppointmentWidget apptWidget = (AppointmentWidget)context.draggable.getParent();
int apptHeight = apptWidget.getOffsetHeight();
Appointment appt = apptWidget.getAppointment();
//get the start date
Date end = (Date)appt.getStart().clone();
//get the "top" location of the appointment widget
float topFloat = DOM.getIntStyleAttribute(apptWidget.getElement(), "top");
//get the grid span
int intervalStart = Math.round(topFloat / snapSize);
int intervalSpan = Math.round(apptHeight / snapSize);