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

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

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

Node.fireNodeDestroyed介绍

[英]To all node listeners fire node destroyed notification.
[中]向所有节点侦听器发出节点已销毁通知。

代码示例

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

  1. /** Called when the nodes have been removed from the children.
  2. * This method should allow subclasses to clean the nodes somehow.
  3. * <p>
  4. * Current implementation notifies all listeners on the nodes
  5. * that nodes have been deleted.
  6. *
  7. * @param arr array of deleted nodes
  8. */
  9. @Override
  10. protected void destroyNodes(Node[] arr) {
  11. for (int i = 0; i < arr.length; i++) {
  12. arr[i].fireNodeDestroyed();
  13. }
  14. }

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

  1. public void run() {
  2. Children p = getParentChildren();
  3. if (p != null) {
  4. // remove itself from parent
  5. p.remove(new Node[] { Node.this });
  6. }
  7. // sets the valid flag to false and fires prop. change
  8. fireNodeDestroyed();
  9. }
  10. }

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

  1. /** Called when the nodes have been removed from the children.
  2. * This method should allow subclasses to clean the nodes somehow.
  3. * <p>
  4. * Current implementation notifies all listeners on the nodes
  5. * that nodes have been deleted.
  6. *
  7. * @param arr array of deleted nodes
  8. */
  9. protected void destroyNodes (Node[] arr) {
  10. for (int i = 0; i < arr.length; i++) {
  11. arr[i].fireNodeDestroyed ();
  12. }
  13. }

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

  1. /** Called when the nodes have been removed from the children.
  2. * This method should allow subclasses to clean the nodes somehow.
  3. * <p>
  4. * Current implementation notifies all listeners on the nodes
  5. * that nodes have been deleted.
  6. *
  7. * @param arr array of deleted nodes
  8. */
  9. protected void destroyNodes (Node[] arr) {
  10. for (int i = 0; i < arr.length; i++) {
  11. arr[i].fireNodeDestroyed ();
  12. }
  13. }

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

  1. public void run () {
  2. Children p = getParentChildren ();
  3. if (p != null) {
  4. // remove itself from parent
  5. p.remove (new Node[] {Node.this} );
  6. }
  7. // sets the valid flag to false and fires prop. change
  8. fireNodeDestroyed ();
  9. }
  10. });

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

  1. public void run () {
  2. Children p = getParentChildren ();
  3. if (p != null) {
  4. // remove itself from parent
  5. p.remove (new Node[] {Node.this} );
  6. }
  7. // sets the valid flag to false and fires prop. change
  8. fireNodeDestroyed ();
  9. }
  10. });

相关文章