public void startDrag(DragGestureEvent trigger, Cursor dragCursor,
Image dragImage, Point imageOffset,
Transferable transferable, DragSourceListener dsl,
FlavorMap flavorMap)
throws InvalidDnDOperationException {
if (curContext != null) {
// awt.171=Attempt to start a drag while an existing drag operation is still executing.
throw new InvalidDnDOperationException(Messages.getString("awt.171")); //$NON-NLS-1$
}
DragSourceContextPeer peer =
Toolkit.getDefaultToolkit().createDragSourceContextPeer(trigger);
curContext = createDragSourceContext(peer, trigger, dragCursor,
dragImage, imageOffset,
transferable, dsl);
peer.startDrag(curContext, dragCursor, dragImage, imageOffset);
curContext = null;
}
DragSource.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录