Examples of DragSourceEventProxy


Examples of org.apache.harmony.awt.datatransfer.DragSourceEventProxy

     * @param winAction - drop action taken
     * @param success - drop was completed successfully
     */
    public void endDrag(int winAction, boolean success) {
        int dndAction = getDndActions(winAction);
        DragSourceEventProxy r = new DragSourceEventProxy(
                context,
                DragSourceEventProxy.DRAG_DROP_END,
                dndAction, success,
                mouseLocation, getCurrentModifiers());
        EventQueue.invokeLater(r);
View Full Code Here

Examples of org.apache.harmony.awt.datatransfer.DragSourceEventProxy

        int newUserAction = getUserAction(modifiers, newTargetActions);

        if (!newLocation.equals(mouseLocation)) {
            mouseLocation.setLocation(newLocation);
            if (newTargetActions != 0) {
                DragSourceEventProxy r = new DragSourceEventProxy(
                        context,
                        DragSourceEventProxy.DRAG_MOUSE_MOVED,
                        newUserAction, newTargetActions,
                        mouseLocation, modifiers);
                EventQueue.invokeLater(r);
            }
        }
       
        if (newUserAction != userAction || newTargetActions != targetActions) {
            int type = 0;
            if (targetActions == 0 && newTargetActions != 0) {
                type = DragSourceEventProxy.DRAG_ENTER;
            } else if (targetActions != 0 && newTargetActions == 0) {
                type = DragSourceEventProxy.DRAG_EXIT;
            } else {
                type = DragSourceEventProxy.DRAG_ACTION_CHANGED;
            }
            userAction = newUserAction;
            targetActions = newTargetActions;
            if (type != 0) {
                DragSourceEventProxy r = new DragSourceEventProxy(
                        context,
                        type, newUserAction, newTargetActions,
                        mouseLocation, modifiers);
                EventQueue.invokeLater(r);
            }
View Full Code Here

Examples of org.apache.harmony.awt.datatransfer.DragSourceEventProxy

     * @param winAction - drop action taken
     * @param success - drop was completed successfully
     */
    public void endDrag(int winAction, boolean success) {
        int dndAction = getDndActions(winAction);
        DragSourceEventProxy r = new DragSourceEventProxy(
                context,
                DragSourceEventProxy.DRAG_DROP_END,
                dndAction, success,
                mouseLocation, getCurrentModifiers());
        EventQueue.invokeLater(r);
View Full Code Here

Examples of org.apache.harmony.awt.datatransfer.DragSourceEventProxy

        int newUserAction = getUserAction(modifiers, newTargetActions);

        if (!newLocation.equals(mouseLocation)) {
            mouseLocation.setLocation(newLocation);
            if (newTargetActions != 0) {
                DragSourceEventProxy r = new DragSourceEventProxy(
                        context,
                        DragSourceEventProxy.DRAG_MOUSE_MOVED,
                        newUserAction, newTargetActions,
                        mouseLocation, modifiers);
                EventQueue.invokeLater(r);
            }
        }
       
        if (newUserAction != userAction || newTargetActions != targetActions) {
            int type = 0;
            if (targetActions == 0 && newTargetActions != 0) {
                type = DragSourceEventProxy.DRAG_ENTER;
            } else if (targetActions != 0 && newTargetActions == 0) {
                type = DragSourceEventProxy.DRAG_EXIT;
            } else {
                type = DragSourceEventProxy.DRAG_ACTION_CHANGED;
            }
            userAction = newUserAction;
            targetActions = newTargetActions;
            if (type != 0) {
                DragSourceEventProxy r = new DragSourceEventProxy(
                        context,
                        type, newUserAction, newTargetActions,
                        mouseLocation, modifiers);
                EventQueue.invokeLater(r);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.