Package java.awt.dnd

Examples of java.awt.dnd.DropTargetDragEvent


        dataObject = new WinDataTransfer.IDataObject(dataObjectPtr);

        DataSnapshot snapshot = new DataSnapshot(dataObject);
        transferable = new DataProxy(snapshot);
       
        DropTargetDragEvent e = new DropTargetDragEvent(
                context, new Point(x, y),
                WinDragSource.getDndActions(userAction),
                WinDragSource.getDndActions(sourceActions));
       
        return dispatchEvent(e, DRAG_ENTER);
View Full Code Here


    /**
     * Called from native method WinDropTarget::DragOver()
     * @return bit mask of DROPEFFECT_* constants according to dropAction
     */
    public int dragOver(int x, int y, int userAction, int sourceActions) {
        DropTargetDragEvent e = new DropTargetDragEvent(
                context, new Point(x, y),
                WinDragSource.getDndActions(userAction),
                WinDragSource.getDndActions(sourceActions));
       
        return dispatchEvent(e, DRAG_OVER);
View Full Code Here

    public void run() {
        synchronized (dropMonitor) {
            switch (dragState) {
            case DRAG_ENTER:
            {
                DropTargetDragEvent e = (DropTargetDragEvent)currentEvent;
                context.getDropTarget().dragEnter(e);
                dropAction = e.getDropAction();
                break;
            }
            case DRAG_OVER:
            {
                DropTargetDragEvent e = (DropTargetDragEvent)currentEvent;
                context.getDropTarget().dragOver(e);
                dropAction = e.getDropAction();
                break;
            }
            case DRAG_DROP:
            {
                DropTargetDropEvent e = (DropTargetDropEvent)currentEvent;
                context.getDropTarget().drop(e);
                dropAction = e.getDropAction();
                break;
            }
            case DRAG_LEAVE:
            {
                context.getDropTarget().dragExit(currentEvent);
View Full Code Here

            currentDTC.addNotify(this);

            currentA   = dt.getDefaultActions();

            try {
                ((DropTargetListener)dt).dragEnter(new DropTargetDragEvent(currentDTC,
                                                                           hots,
                                                                           currentDA,
                                                                           currentSA));
            } catch (Exception e) {
                e.printStackTrace();
View Full Code Here

            }

            currentA = currentDT.getDefaultActions();

            try {
                DropTargetDragEvent dtde = new DropTargetDragEvent(dtc,
                                                                   hots,
                                                                   currentDA,
                                                                   currentSA);
                DropTargetListener dtl = (DropTargetListener)dt;
                if (operationChanged) {
View Full Code Here

        dataObject = new WinDataTransfer.IDataObject(dataObjectPtr);

        DataSnapshot snapshot = new DataSnapshot(dataObject);
        transferable = new DataProxy(snapshot);
       
        DropTargetDragEvent e = new DropTargetDragEvent(
                context, new Point(x, y),
                WinDragSource.getDndActions(userAction),
                WinDragSource.getDndActions(sourceActions));
       
        return dispatchEvent(e, DRAG_ENTER);
View Full Code Here

    /**
     * Called from native method WinDropTarget::DragOver()
     * @return bit mask of DROPEFFECT_* constants according to dropAction
     */
    public int dragOver(int x, int y, int userAction, int sourceActions) {
        DropTargetDragEvent e = new DropTargetDragEvent(
                context, new Point(x, y),
                WinDragSource.getDndActions(userAction),
                WinDragSource.getDndActions(sourceActions));
       
        return dispatchEvent(e, DRAG_OVER);
View Full Code Here

    public void run() {
        synchronized (dropMonitor) {
            switch (dragState) {
            case DRAG_ENTER:
            {
                DropTargetDragEvent e = (DropTargetDragEvent)currentEvent;
                context.getDropTarget().dragEnter(e);
                dropAction = e.getDropAction();
                break;
            }
            case DRAG_OVER:
            {
                DropTargetDragEvent e = (DropTargetDragEvent)currentEvent;
                context.getDropTarget().dragOver(e);
                dropAction = e.getDropAction();
                break;
            }
            case DRAG_DROP:
            {
                DropTargetDropEvent e = (DropTargetDropEvent)currentEvent;
                context.getDropTarget().drop(e);
                dropAction = e.getDropAction();
                break;
            }
            case DRAG_LEAVE:
            {
                context.getDropTarget().dragExit(currentEvent);
View Full Code Here

            currentDTC.addNotify(this);

            currentA   = dt.getDefaultActions();

            try {
                ((DropTargetListener)dt).dragEnter(new DropTargetDragEvent(currentDTC,
                                                                           hots,
                                                                           currentDA,
                                                                           currentSA));
            } catch (Exception e) {
                e.printStackTrace();
View Full Code Here

            }

            currentA = currentDT.getDefaultActions();

            try {
                DropTargetDragEvent dtde = new DropTargetDragEvent(dtc,
                                                                   hots,
                                                                   currentDA,
                                                                   currentSA);
                DropTargetListener dtl = (DropTargetListener)dt;
                if (operationChanged) {
View Full Code Here

TOP

Related Classes of java.awt.dnd.DropTargetDragEvent

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.