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

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

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

Children.removeNotify介绍

[英]Called when the list of nodes for this children object is no longer needed by the IDE. Typical implementations at this time remove all children to save memory (or clear the keys for Children.Keys etc.).
[中]当IDE不再需要此子对象的节点列表时调用。此时的典型实现是删除所有子项以节省内存(或清除子项的键.keys等)。

代码示例

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

final void callRemoveNotify() {
  removeNotify();
}

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

@Override
protected void removeNotify() {
  getOriginal().removeNotify();
}

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

/** Finalized.
*/
final void finalizedChildrenArray (Object caller) {
  // usually in removeNotify setKeys is called => better require write access
  try {
    PR.enterWriteAccess ();
    
    Object value = array.get ();
    if (value == null || value == caller) {
      // really finalized and not reconstructed
      removeNotify ();
    }
    /*
    else {
      System.out.println("Strange removeNotify " + caller + " : " + value );
    }
    */
  } finally {
    PR.exitWriteAccess ();
  }
}

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

/** Finalized.
*/
final void finalizedChildrenArray (Object caller) {
  // usually in removeNotify setKeys is called => better require write access
  try {
    PR.enterWriteAccess ();
    
    Object value = array.get ();
    if (value == null || value == caller) {
      // really finalized and not reconstructed
      removeNotify ();
    }
    /*
    else {
      System.out.println("Strange removeNotify " + caller + " : " + value );
    }
    */
  } finally {
    PR.exitWriteAccess ();
  }
}

相关文章