private class TestDropHandler implements DropHandler {
@Override
public void drop(DragAndDropEvent event) {
CalendarTargetDetails details = (CalendarTargetDetails) event
.getTargetDetails();
TableTransferable transferable = (TableTransferable) event
.getTransferable();
calendar.addEvent(new BasicEvent(transferable.getItemId()
.toString(), "This event was dragged here", details
.getDropTime()));
table.removeItem(transferable.getItemId());
}