本文整理了Java中org.openide.nodes.Node.clipboardCut()
方法的一些代码示例,展示了Node.clipboardCut()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.clipboardCut()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:clipboardCut
[英]Called when a node is to be cut to the clipboard.
[中]将节点剪切到剪贴板时调用。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
public Transferable clipboardCut() throws IOException {
return original.clipboardCut();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public Transferable clipboardCut () throws IOException {
return original.clipboardCut ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public Transferable clipboardCut () throws IOException {
return original.clipboardCut ();
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
private static Transferable getTransferableOwner(Node node, boolean copyCut) {
try {
return copyCut ? node.clipboardCopy() : node.clipboardCut();
} catch (IOException e) {
LOG.log(Level.WARNING, null, e);
return null;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
private Transferable getTransferableOwner(Node node) {
try {
return copyCut ? node.clipboardCopy() : node.clipboardCut();
} catch (java.io.IOException e) {
ErrorManager.getDefault ().notify(ErrorManager.INFORMATIONAL, e);
return null;
}
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-java-project-ui
@Override public Transferable clipboardCut() throws IOException {
DataFolder top = topPackage();
if (top != null) {
return top.getNodeDelegate().clipboardCut();
} else {
return super.clipboardCut();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
private Transferable getTransferableOwner(Node node) {
try {
return copyCut ? node.clipboardCopy() : node.clipboardCut();
} catch (java.io.IOException e) {
ErrorManager.getDefault ().notify(ErrorManager.INFORMATIONAL, e);
return null;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
private Transferable getTransferableOwner(Node node) {
try {
return copyCut ? node.clipboardCopy() : node.clipboardCut();
} catch (java.io.IOException e) {
ErrorManager.getDefault ().notify(ErrorManager.INFORMATIONAL, e);
return null;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
private Transferable getTransferableOwner(Node node) {
try {
return copyCut ? node.clipboardCopy() : node.clipboardCut();
} catch (java.io.IOException e) {
ErrorManager.getDefault ().notify(ErrorManager.INFORMATIONAL, e);
return null;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
ExClipboard cb = (ExClipboard)c;
if ((dragAction & DnDConstants.ACTION_MOVE) != 0) {
tArray[i] = cb.convert (nodes[i].clipboardCut());
tArray[i] = nodes[i].clipboardCut();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
ExClipboard cb = (ExClipboard)c;
if ((dragAction & DnDConstants.ACTION_MOVE) != 0) {
tArray[i] = cb.convert (nodes[i].clipboardCut());
tArray[i] = nodes[i].clipboardCut();
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Gets right transferable of given nodes (according to given
* drag action) and also converts the transferable.<br>
* Can be called only with correct action constant.
* @return The transferable.
*/
static Transferable getNodeTransferable(Node[] nodes, int dragAction)
throws IOException {
Transferable[] tArray = new Transferable[nodes.length];
for (int i = 0; i < nodes.length; i++) {
if ((dragAction & DnDConstants.ACTION_MOVE) != 0) {
tArray[i] = nodes[i].clipboardCut();
} else {
tArray[i] = nodes[i].drag ();
}
}
Transferable result;
if (tArray.length == 1) {
// only one node, so return regular single transferable
result = tArray[0];
} else {
// enclose the transferables into multi transferable
result = ExternalDragAndDrop.maybeAddExternalFileDnd( new Multi(tArray) );
}
Clipboard c = getClipboard();
if (c instanceof ExClipboard) {
return ((ExClipboard) c).convert(result);
} else {
return result;
}
}
内容来源于网络,如有侵权,请联系作者删除!