Package java.awt.dnd

Examples of java.awt.dnd.InvalidDnDOperationException


                break;
            case SunDropTargetEvent.MOUSE_DROPPED:
                dispatchDropEvent(e);
                break;
            default:
                throw new InvalidDnDOperationException();
            }
        }
View Full Code Here


      throws InvalidDnDOperationException {

        /* Fix for 4354044: don't initiate a drag if event sequence provided by
         * DragGestureRecognizer is empty */
        if (getTrigger().getTriggerEvent() == null) {
            throw new InvalidDnDOperationException("DragGestureEvent has a null trigger");
        }

        dragSourceContext = dsc;
        cursor            = c;
        sourceActions     = getDragSourceContext().getSourceActions();
View Full Code Here

    }

    public static void setDragDropInProgress(boolean b)
      throws InvalidDnDOperationException {
        if (dragDropInProgress == b) {
            throw new InvalidDnDOperationException(getExceptionMessage(b));
        }

        synchronized (SunDragSourceContextPeer.class) {
            if (dragDropInProgress == b) {
                throw new InvalidDnDOperationException(getExceptionMessage(b));
            }
            dragDropInProgress = b;
        }
    }
View Full Code Here

    }

    public static void checkDragDropInProgress()
      throws InvalidDnDOperationException {
        if (dragDropInProgress) {
            throw new InvalidDnDOperationException(getExceptionMessage(true));
        }
    }
View Full Code Here

    }

    @Override
    public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge)
    throws InvalidDnDOperationException {
        throw new InvalidDnDOperationException();
    }
View Full Code Here

    }

    public Transferable getTransferable() throws InvalidDnDOperationException {
        if (transferable == null) {
            // awt.14=Transfer data is not available
            throw new InvalidDnDOperationException(Messages.getString("awt.14")); //$NON-NLS-1$
        }
        return transferable;
    }
View Full Code Here

    }

    public Transferable getTransferable() throws InvalidDnDOperationException {
        if (transferable == null) {
            // awt.07=Transfer data is not available
            throw new InvalidDnDOperationException(
                    Messages.getString("awt.07")); //$NON-NLS-1$
        }
        return transferable;
    }
View Full Code Here

    }

    @Override
    public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge)
    throws InvalidDnDOperationException {
        throw new InvalidDnDOperationException();
    }
View Full Code Here

        }

        if (!XDnDConstants.XDnDSelection.setOwner(contents, formatMap, formats,
                                                  XlibWrapper.CurrentTime)) {
            cleanup();
            throw new InvalidDnDOperationException("Cannot acquire selection ownership");
        }
    }
View Full Code Here

        if (!MotifDnDConstants.MotifDnDSelection.setOwner(contents, formatMap,
                                                          formats,
                                                          XlibWrapper.CurrentTime)) {
            cleanup();
            throw new InvalidDnDOperationException("Cannot acquire selection ownership");
        }
    }
View Full Code Here

TOP

Related Classes of java.awt.dnd.InvalidDnDOperationException

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.