Examples of DropTargetContextPeer


Examples of java.awt.dnd.peer.DropTargetContextPeer

     * <P>
     * @param dragOperation the supported action(s)
     */

    protected void acceptDrag(int dragOperation) {
        DropTargetContextPeer peer = getDropTargetContextPeer();
        if (peer != null) {
            peer.acceptDrag(dragOperation);
        }
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

    /**
     * reject the Drag.
     */

    protected void rejectDrag() {
        DropTargetContextPeer peer = getDropTargetContextPeer();
        if (peer != null) {
            peer.rejectDrag();
        }
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

     * <P>
     * @param dropOperation the supported action(s)
     */

    protected void acceptDrop(int dropOperation) {
        DropTargetContextPeer peer = getDropTargetContextPeer();
        if (peer != null) {
            peer.acceptDrop(dropOperation);
        }
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

     * called to signal that the drop is unacceptable.
     * must be called during DropTargetListener.drop method invocation.
     */

    protected void rejectDrop() {
        DropTargetContextPeer peer = getDropTargetContextPeer();
        if (peer != null) {
            peer.rejectDrop();
        }
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

     * supported <code>DataFlavor</code>s of the
     * <code>Transferable</code> operand.
     */

    protected DataFlavor[] getCurrentDataFlavors() {
        DropTargetContextPeer peer = getDropTargetContextPeer();
        return peer != null ? peer.getTransferDataFlavors() : new DataFlavor[0];
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

     * <P>
     * @return the <code>Transferable</code>
     */

    protected Transferable getTransferable() throws InvalidDnDOperationException {
        DropTargetContextPeer peer = getDropTargetContextPeer();
        if (peer == null) {
            throw new InvalidDnDOperationException();
        } else {
            if (transferable == null) {
                Transferable t = peer.getTransferable();
                boolean isLocal = peer.isTransferableJVMLocal();
                synchronized (this) {
                    if (transferable == null) {
                        transferable = createTransferableProxy(t, isLocal);
                    }
                }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

        if(component == null) {
            return;
        }
       
        DTK dtk = DTK.getDTK();
        DropTargetContextPeer dtp = dtk.createDropTargetContextPeer(context);
        context.addNotify(dtp);
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

        if(component == null) {
            return;
        }
       
        DTK dtk = DTK.getDTK();
        DropTargetContextPeer dtp = dtk.createDropTargetContextPeer(context);
        context.addNotify(dtp);
    }
View Full Code Here

Examples of java.awt.dnd.peer.DropTargetContextPeer

        if(component == null) {
            return;
        }
       
        DTK dtk = DTK.getDTK();
        DropTargetContextPeer dtp = dtk.createDropTargetContextPeer(context);
        context.addNotify(dtp);
        // TODO: implement
    }
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.