Package gwtquery.plugins.draggable.client.events

Examples of gwtquery.plugins.draggable.client.events.DragContext


  protected boolean mouseDrag(Element currentDraggable, GqEvent event) {
    dragStart = true;

    boolean result = false;

    DragContext ctx = new DragContext(currentDraggable, currentDraggable,
        selectedDraggables);
    result |= mouseDragImpl(ctx,
        DraggableHandler.getInstance(currentDraggable), event, false);

    for (Element draggable : selectedDraggables) {
      if (draggable != currentDraggable) {
        ctx = new DragContext(draggable, currentDraggable, selectedDraggables);
        result |= mouseDragImpl(ctx, DraggableHandler.getInstance(draggable),
            event, false);
      }

    }
View Full Code Here


        }
      });
    }

    // first call mouseStart for the initial draggable
    DragContext ctx = new DragContext(currentDraggable, currentDraggable,
        selectedDraggables);
    result |= mouseStartImpl(ctx, event);

    // call mouseStartImpl for the others
    for (Element draggable : selectedDraggables) {
      if (draggable != currentDraggable) {
        ctx = new DragContext(draggable, currentDraggable, selectedDraggables);
        result |= mouseStartImpl(ctx, event);
      }
    }

    return result;
View Full Code Here

  @Override
  protected boolean mouseStop(Element initialDraggable, final GqEvent event) {
    boolean result = false;

    DragContext ctx = new DragContext(initialDraggable, initialDraggable,
        selectedDraggables);
    result |= mouseStopImpl(ctx, event);

    for (Element draggable : selectedDraggables) {
      if (draggable != initialDraggable) {
        ctx = new DragContext(draggable, initialDraggable, selectedDraggables);
        result |= mouseStopImpl(ctx, event);
      }

    }
View Full Code Here

TOP

Related Classes of gwtquery.plugins.draggable.client.events.DragContext

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.