本文整理了Java中org.openide.nodes.Node.canCut()
方法的一些代码示例,展示了Node.canCut()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.canCut()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:canCut
[英]Test whether this node permits cutting.
[中]测试此节点是否允许切割。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
public boolean canCut() {
return original.canCut();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public boolean canCut () {
return original.canCut ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public boolean canCut () {
return original.canCut ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Utility method.
* @return true if given node supports given action,
* false otherwise.
*/
static boolean checkNodeForAction (Node node, int dragAction) {
if (node.canCut() &&
((dragAction == DnDConstants.ACTION_MOVE) ||
(dragAction == DnDConstants.ACTION_COPY_OR_MOVE)))
return true;
if (node.canCopy() &&
((dragAction == DnDConstants.ACTION_COPY) ||
(dragAction == DnDConstants.ACTION_COPY_OR_MOVE) ||
(dragAction == DnDConstants.ACTION_LINK) ||
(dragAction == DnDConstants.ACTION_REFERENCE)))
return true;
// hmmm, conditions not satisfied..
return false;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Utility method.
* @return true if given node supports given action,
* false otherwise.
*/
static boolean checkNodeForAction (Node node, int dragAction) {
if (node.canCut() &&
((dragAction == DnDConstants.ACTION_MOVE) ||
(dragAction == DnDConstants.ACTION_COPY_OR_MOVE)))
return true;
if (node.canCopy() &&
((dragAction == DnDConstants.ACTION_COPY) ||
(dragAction == DnDConstants.ACTION_COPY_OR_MOVE) ||
(dragAction == DnDConstants.ACTION_LINK) ||
(dragAction == DnDConstants.ACTION_REFERENCE)))
return true;
// hmmm, conditions not satisfied..
return false;
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Utility method.
* @return true if given node supports given action,
* false otherwise.
*/
static boolean checkNodeForAction(Node node, int dragAction) {
if (
node.canCut() &&
((dragAction == DnDConstants.ACTION_MOVE) || (dragAction == DnDConstants.ACTION_COPY_OR_MOVE))
) {
return true;
}
if (
node.canCopy() &&
((dragAction == DnDConstants.ACTION_COPY) || (dragAction == DnDConstants.ACTION_COPY_OR_MOVE) ||
(dragAction == DnDConstants.ACTION_LINK) || (dragAction == DnDConstants.ACTION_REFERENCE))
) {
return true;
}
// hmmm, conditions not satisfied..
return false;
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
if (!nodes[i].canCut()) {
possibleNodeAction = DnDConstants.ACTION_COPY | DnDConstants.ACTION_REFERENCE;
代码示例来源:origin: org.netbeans.api/org-openide-explorer
if (incest || !path[i].canCut()) {
cutActionPerformer.toEnabled(false);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
if (incest || !path[i].canCut()) {
cutActionPerformer.setEnabled (false);
break;
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
if (incest || !path[i].canCut()) {
cutActionPerformer.setEnabled (false);
break;
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
if (incest || !path[i].canCut()) {
if (attachPerformers) {
cut.setActionPerformer (null);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
if (incest || !path[i].canCut()) {
if (attachPerformers) {
cut.setActionPerformer (null);
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
for (int i = 0; i < nodes.length; i++) {
if ((possibleNodeAction & DnDConstants.ACTION_MOVE) != 0) {
if (!nodes[i].canCut ()) {
possibleNodeAction = DnDConstants.ACTION_COPY | DnDConstants.ACTION_REFERENCE;
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
for (int i = 0; i < nodes.length; i++) {
if ((possibleNodeAction & DnDConstants.ACTION_MOVE) != 0) {
if (!nodes[i].canCut ()) {
possibleNodeAction = DnDConstants.ACTION_COPY | DnDConstants.ACTION_REFERENCE;
内容来源于网络,如有侵权,请联系作者删除!