Package com.allen_sauer.gwt.dnd.client.drop

Examples of com.allen_sauer.gwt.dnd.client.drop.DayViewResizeController


    }
  }
 
  private void createResizeController() {
    if (resizeController == null) {
      resizeController = new DayViewResizeController(dayViewBody.getGrid().grid);
      resizeController.addDragHandler(new DragHandler(){

        public void onDragEnd(DragEndEvent event) {
          Appointment appt = ((AppointmentWidget) event.getContext().draggable.getParent()).getAppointment();
                    calendarWidget.setCommittedAppointment(appt);
                    calendarWidget.fireUpdateEvent(appt);
        }

        public void onDragStart(DragStartEvent event) {
          calendarWidget
          .setRollbackAppointment(((AppointmentWidget) event
              .getContext().draggable.getParent()).getAppointment()
              .clone());
        }

        public void onPreviewDragEnd(DragEndEvent event)
            throws VetoDragException {}
        public void onPreviewDragStart(DragStartEvent event)
            throws VetoDragException {}
      });
    }
     
    if(proxyResizeController == null) {
      proxyResizeController = new DayViewResizeController(dayViewBody.getGrid().grid);
      proxyResizeController.addDragHandler(new DragHandler(){
        long startTime = 0L;
        int initialX = 0;
        int initialY = 0;
        Date startDate;
View Full Code Here

TOP

Related Classes of com.allen_sauer.gwt.dnd.client.drop.DayViewResizeController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.