org.openide.nodes.Node.canCopy()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(87)

本文整理了Java中org.openide.nodes.Node.canCopy()方法的一些代码示例,展示了Node.canCopy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.canCopy()方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:canCopy

Node.canCopy介绍

[英]Test whether this node permits copying.
[中]测试此节点是否允许复制。

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-nodes

public boolean canCopy() {
  return original.canCopy();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

public boolean canCopy () {
  return original.canCopy ();
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

public boolean canCopy () {
  return original.canCopy ();
}

代码示例来源: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].canCopy()) {
  possibleNodeAction = DnDConstants.ACTION_NONE;

代码示例来源:origin: org.netbeans.api/org-openide-explorer

if (incest || !path[i].canCopy()) {
  copyActionPerformer.toEnabled(false);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

if (incest || !path[i].canCopy()) {
  copyActionPerformer.setEnabled (false);
  break;

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

if (incest || !path[i].canCopy()) {
  copyActionPerformer.setEnabled (false);
  break;

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

if (incest || !path[i].canCopy()) {
  if (attachPerformers) {
    copy.setActionPerformer (null);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

if (incest || !path[i].canCopy()) {
  if (attachPerformers) {
    copy.setActionPerformer (null);

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

if (!nodes[i].canCopy ()) {
  possibleNodeAction = DnDConstants.ACTION_NONE;

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

if (!nodes[i].canCopy ()) {
  possibleNodeAction = DnDConstants.ACTION_NONE;

相关文章

微信公众号

最新文章

更多