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

x33g5p2x  于2022-01-18 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(113)

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

Children.remove介绍

[英]Remove nodes from the list. Only nodes that are present are removed.
[中]从列表中删除节点。仅删除存在的节点。

代码示例

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

public void run() {
    Children p = getParentChildren();
    if (p != null) {
      // remove itself from parent
      p.remove(new Node[] { Node.this });
    }
    // sets the valid flag to false and fires prop. change
    fireNodeDestroyed();
  }
}

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

@Override
@Deprecated
public boolean remove(Node[] arr) {
  return original.getChildren().remove(arr);
}

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

@Override
public boolean remove(Node[] nodes) {
  return getOriginal().remove(nodes);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

@Override
  public void run() {
    children.remove(children.getNodes());
  }
});

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

public void run () {
    Children p = getParentChildren ();
    if (p != null) {
      // remove itself from parent
      p.remove (new Node[] {Node.this} );
    }
    // sets the valid flag to false and fires prop. change
    fireNodeDestroyed ();
  }
});

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

public void run () {
    Children p = getParentChildren ();
    if (p != null) {
      // remove itself from parent
      p.remove (new Node[] {Node.this} );
    }
    // sets the valid flag to false and fires prop. change
    fireNodeDestroyed ();
  }
});

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

public boolean remove (Node[] arr) {
  return original.getChildren ().remove (arr);
}

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

public boolean remove (Node[] arr) {
  return original.getChildren ().remove (arr);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

@Override
  public void run() {
    children.remove(children.getNodes());
    refreshTask.cancel();
  }
});

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-nodes

@Override
 public void run()
  {
   logger.finest(">>>> removing current children...");
   children.remove(children.getNodes());
  }
});

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

@Override
  public void run() {
    children.remove(children.getNodes());
    children.add(new Node[] { ElementNode.getWaitNode(NbBundle.getMessage(ClassHierarchyPanel.class, "PleaseWait")) });
  }
});

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-semantic-node

public void actionPerformed (@Nonnull final ActionEvent event)
  {
   final Node[] nodes = getExplorerManager().getSelectedNodes();
   containerNode.getChildren().remove(nodes);
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

@Override
  public void run() {
    children.remove(children.getNodes());
    children.add(new Node[]{node});
    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        menuAvaliable.set(true);
        updateButtons();
        ((BeanTreeView) hierarchyPane).expandNode(node);
        Node selected = findSelection();
        try {
          getExplorerManager().setSelectedNodes(new Node[]{selected});
        } catch (PropertyVetoException ex) {
        }
      }
    });
  }
});

代码示例来源:origin: it.tidalwave.semantic/it-tidalwave-semantic-node

public void actionPerformed (@Nonnull final ActionEvent event)
  {
   final Node[] all = containerNode.getChildren().getNodes();
   containerNode.getChildren().remove(all);
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

@Override
  public void run() {
    children.remove(children.getNodes());
    children.add(new Node[]{new LoadingNode()});
  }
});

代码示例来源:origin: nl.cloudfarming.client/geoviewer-data

@Override
  public Transferable paste() {
    try {
      // adds the new node to the selected parent (current node)
      dropNode.getParentNode().getChildren().add(new Node[]{new LayerNode(selectedLayer,getLookup().lookup(MapController.class))});
    } catch (IntrospectionException ex) {
      Exceptions.printStackTrace(ex);
    }
    // remove the node from the old location
    dropNode.getParentNode().getChildren().remove(new Node[]{dropNode});
    return null;
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-navigation

@Override
  public void run() {
    children.remove(children.getNodes());
    HierarchyModel curModel = model;
    if (curModel != null) {
      final Node node = new HierarchyNode(csmClass, curModel, null);
      children.add(new Node[]{node});
      try {
        getExplorerManager().setSelectedNodes(new Node[]{node});
      } catch (PropertyVetoException ex) {
      }
      SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
          menuAvaliable.set(true);
          updateButtons();
          ((BeanTreeView) hierarchyPane).expandNode(node);
        }
      });
    }
  }
});

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-nodes

children.remove(children.getNodes());
final Retrier retrier = new Retrier(children, (SafeChildFactory<?>)childFactory);
AtomicInteger retryCount = retryCountMap.get(node);

代码示例来源:origin: it.tidalwave.netbeans/it-tidalwave-netbeans-visual

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
public void removeAllNodes()
 {
  logger.fine("removeAllNodes()");
  connectionLayer.removeChildren();
  mainLayer.removeChildren();
  for (final Object object : new ArrayList<Object>(getObjects()))
   {
    final Node node = (Node)object;
    rootNode.getChildren().remove(new Node[]{node});
    for (final Widget widget : findWidgets(node))
     {
      widget.removeFromParent();
     }
    removeObject(node);
   }
 }

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-ddui

children.remove(nodes);
children.add(newNodes);
populateBoxPanel();

相关文章