Package com.extjs.gxt.ui.client.event

Examples of com.extjs.gxt.ui.client.event.DNDEvent


  protected void onDragStart(DNDEvent event) {

  }

  private void onDraggableDragCancel(DragEvent de) {
    DNDEvent e = new DNDEvent(this);
    e.setEvent(de.getEvent());
    e.setDragEvent(de);
    e.setComponent(component);
    DNDManager.get().handleDragCancelled(this, e);
  }
View Full Code Here


    e.setComponent(component);
    DNDManager.get().handleDragCancelled(this, e);
  }

  private void onDraggableDragEnd(DragEvent de) {
    DNDEvent e = new DNDEvent(this, de.getEvent());
    e.setData(data);
    e.setDragEvent(de);
    e.setComponent(component);
    e.setStatus(statusProxy);
    if (e.getData() != null) {
      DNDManager.get().handleDragEnd(this, e);
    }
  }
View Full Code Here

  private void onDraggableDragMove(DragEvent de) {
    de.setX(de.getClientX() + 12 + XDOM.getBodyScrollLeft());
    de.setY(de.getClientY() + 12 + XDOM.getBodyScrollTop());

    DNDEvent e = new DNDEvent(this, de.getEvent());
    e.setDragEvent(de);
    e.setComponent(component);
    e.setData(data);
    e.setStatus(statusProxy);
    DNDManager.get().handleDragMove(this, e);
  }
View Full Code Here

    e.setStatus(statusProxy);
    DNDManager.get().handleDragMove(this, e);
  }

  private void onDraggableDragStart(DragEvent de) {
    DNDEvent e = new DNDEvent(this, de.getEvent());
    e.setData(data);
    e.setDragEvent(de);
    e.setComponent(component);
    e.setStatus(statusProxy);
    DNDManager.get().handleDragStart(this, e);
    // instruct draggable
    de.setCancelled(e.isCancelled());
  }
View Full Code Here

public class EditModeTreeGridDragSource extends TreeGridDragSource {
    public EditModeTreeGridDragSource(TreeGrid c) {
        super(c);
        DragListener listener = new DragListener() {
            public void dragEnd(DragEvent de) {
                DNDEvent e = new DNDEvent(EditModeTreeGridDragSource.this, de.getEvent());
                e.setData(data);
                e.setDragEvent(de);
                e.setComponent(component);
                e.setStatus(statusProxy);

                onDragEnd(e);
            }
        };
        draggable.addDragListener(listener);
View Full Code Here

public class EditModeGridDragSource extends GridDragSource {
    public EditModeGridDragSource(Grid c) {
        super(c);
        DragListener listener = new DragListener() {
            public void dragEnd(DragEvent de) {
                DNDEvent e = new DNDEvent(EditModeGridDragSource.this, de.getEvent());
                e.setData(data);
                e.setDragEvent(de);
                e.setComponent(component);
                e.setStatus(statusProxy);

                onDragEnd(e);
            }
        };
        draggable.addDragListener(listener);
View Full Code Here

  protected void onDragStart(DNDEvent event) {

  }

  private void onDraggableDragCancel(DragEvent de) {
    DNDEvent e = new DNDEvent(this);
    e.setEvent(de.getEvent());
    e.setDragEvent(de);
    e.setComponent(component);
    DNDManager.get().handleDragCancelled(this, e);
  }
View Full Code Here

    e.setComponent(component);
    DNDManager.get().handleDragCancelled(this, e);
  }

  private void onDraggableDragEnd(DragEvent de) {
    DNDEvent e = new DNDEvent(this, de.getEvent());
    e.setData(data);
    e.setDragEvent(de);
    e.setComponent(component);
    e.setStatus(statusProxy);
    if (e.getData() != null) {
      DNDManager.get().handleDragEnd(this, e);
    }
  }
View Full Code Here

  private void onDraggableDragMove(DragEvent de) {
    de.setX(de.getClientX() + 12 + XDOM.getBodyScrollLeft());
    de.setY(de.getClientY() + 12 + XDOM.getBodyScrollTop());

    DNDEvent e = new DNDEvent(this, de.getEvent());
    e.setDragEvent(de);
    e.setComponent(component);
    e.setData(data);
    e.setStatus(statusProxy);
    DNDManager.get().handleDragMove(this, e);
  }
View Full Code Here

    e.setStatus(statusProxy);
    DNDManager.get().handleDragMove(this, e);
  }

  private void onDraggableDragStart(DragEvent de) {
    DNDEvent e = new DNDEvent(this, de.getEvent());
    e.setData(data);
    e.setDragEvent(de);
    e.setComponent(component);
    e.setStatus(statusProxy);
    DNDManager.get().handleDragStart(this, e);
    // instruct draggable
    de.setCancelled(e.isCancelled());
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.event.DNDEvent

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.