Java 类java.awt.dnd.peer.DropTargetContextPeer 实例源码

项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 *
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 *
 * @return the {@code Transferable}
 */

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);
                }
            }
        }

        return transferable;
    }
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 *
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 *
 * @return the {@code Transferable}
 */

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);
                }
            }
        }

        return transferable;
    }
}
项目:Java8CN    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:jdk8u_jdk    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:VarJ    文件:DropTargetContext.java   
/**
    * get the Transferable (proxy) operand of this operation
    * <P>
    * @throws InvalidDnDOperationException if a drag is not outstanding/extant
    * <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);
                   }
               }
    }

    return transferable;
}
   }
项目:jdk-1.7-annotated    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:infobip-open-jdk-8    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:jdk8u-dev-jdk    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:jdk7-jdk    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:openjdk-source-code-learn    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:OLD-OpenJDK8    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:openjdk-jdk7u-jdk    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:openjdk-icedtea7    文件:DropTargetContext.java   
/**
 * get the Transferable (proxy) operand of this operation
 * <P>
 * @throws InvalidDnDOperationException if a drag is not outstanding/extant
 * <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);
                }
            }
        }

        return transferable;
    }
}
项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * This method sets the current actions acceptable to
 * this <code>DropTarget</code>.
 * <P>
 * @param actions an <code>int</code> representing the supported action(s)
 */

protected void setTargetActions(int actions) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        synchronized (peer) {
            peer.setTargetActions(actions);
            getDropTarget().doSetDefaultActions(actions);
        }
    } else {
        getDropTarget().doSetDefaultActions(actions);
    }
}
项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * This method returns an <code>int</code> representing the
 * current actions this <code>DropTarget</code> will accept.
 * <P>
 * @return the current actions acceptable to this <code>DropTarget</code>
 */

protected int getTargetActions() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    return ((peer != null)
                    ? peer.getTargetActions()
                    : dropTarget.getDefaultActions()
    );
}
项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * accept the Drag.
 * <P>
 * @param dragOperation the supported action(s)
 */

protected void acceptDrag(int dragOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrag(dragOperation);
    }
}
项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * reject the Drag.
 */

protected void rejectDrag() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.rejectDrag();
    }
}
项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * called to signal that the drop is acceptable
 * using the specified operation.
 * must be called during DropTargetListener.drop method invocation.
 * <P>
 * @param dropOperation the supported action(s)
 */

protected void acceptDrop(int dropOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrop(dropOperation);
    }
}
项目:OpenJSharp    文件:DropTargetContext.java   
/**
 * 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();
    }
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * This method sets the current actions acceptable to
 * this <code>DropTarget</code>.
 * <P>
 * @param actions an <code>int</code> representing the supported action(s)
 */

protected void setTargetActions(int actions) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        synchronized (peer) {
            peer.setTargetActions(actions);
            getDropTarget().doSetDefaultActions(actions);
        }
    } else {
        getDropTarget().doSetDefaultActions(actions);
    }
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * This method returns an <code>int</code> representing the
 * current actions this <code>DropTarget</code> will accept.
 * <P>
 * @return the current actions acceptable to this <code>DropTarget</code>
 */

protected int getTargetActions() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    return ((peer != null)
                    ? peer.getTargetActions()
                    : dropTarget.getDefaultActions()
    );
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * accept the Drag.
 * <P>
 * @param dragOperation the supported action(s)
 */

protected void acceptDrag(int dragOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrag(dragOperation);
    }
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * reject the Drag.
 */

protected void rejectDrag() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.rejectDrag();
    }
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * called to signal that the drop is acceptable
 * using the specified operation.
 * must be called during DropTargetListener.drop method invocation.
 * <P>
 * @param dropOperation the supported action(s)
 */

protected void acceptDrop(int dropOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrop(dropOperation);
    }
}
项目:jdk8u-jdk    文件:DropTargetContext.java   
/**
 * 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();
    }
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * This method sets the current actions acceptable to
 * this {@code DropTarget}.
 *
 * @param actions an {@code int} representing the supported action(s)
 */

protected void setTargetActions(int actions) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        synchronized (peer) {
            peer.setTargetActions(actions);
            getDropTarget().doSetDefaultActions(actions);
        }
    } else {
        getDropTarget().doSetDefaultActions(actions);
    }
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * This method returns an {@code int} representing the
 * current actions this {@code DropTarget} will accept.
 *
 * @return the current actions acceptable to this {@code DropTarget}
 */

protected int getTargetActions() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    return ((peer != null)
                    ? peer.getTargetActions()
                    : dropTarget.getDefaultActions()
    );
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * accept the Drag.
 *
 * @param dragOperation the supported action(s)
 */

protected void acceptDrag(int dragOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrag(dragOperation);
    }
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * reject the Drag.
 */

protected void rejectDrag() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.rejectDrag();
    }
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * called to signal that the drop is acceptable
 * using the specified operation.
 * must be called during DropTargetListener.drop method invocation.
 *
 * @param dropOperation the supported action(s)
 */

protected void acceptDrop(int dropOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrop(dropOperation);
    }
}
项目:openjdk-jdk10    文件:DropTargetContext.java   
/**
 * 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();
    }
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * This method sets the current actions acceptable to
 * this {@code DropTarget}.
 *
 * @param actions an {@code int} representing the supported action(s)
 */

protected void setTargetActions(int actions) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        synchronized (peer) {
            peer.setTargetActions(actions);
            getDropTarget().doSetDefaultActions(actions);
        }
    } else {
        getDropTarget().doSetDefaultActions(actions);
    }
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * This method returns an {@code int} representing the
 * current actions this {@code DropTarget} will accept.
 *
 * @return the current actions acceptable to this {@code DropTarget}
 */

protected int getTargetActions() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    return ((peer != null)
                    ? peer.getTargetActions()
                    : dropTarget.getDefaultActions()
    );
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * accept the Drag.
 *
 * @param dragOperation the supported action(s)
 */

protected void acceptDrag(int dragOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrag(dragOperation);
    }
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * reject the Drag.
 */

protected void rejectDrag() {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.rejectDrag();
    }
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * called to signal that the drop is acceptable
 * using the specified operation.
 * must be called during DropTargetListener.drop method invocation.
 *
 * @param dropOperation the supported action(s)
 */

protected void acceptDrop(int dropOperation) {
    DropTargetContextPeer peer = getDropTargetContextPeer();
    if (peer != null) {
        peer.acceptDrop(dropOperation);
    }
}
项目:openjdk9    文件:DropTargetContext.java   
/**
 * 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();
    }
}