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

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

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

Children.addNotify介绍

[英]Called when children are first asked for nodes. Typical implementations at this time calculate their node list (or keys for Children.Keys etc.).
Notice: call to getNodes() inside of this method will return an empty array of nodes.
[中]当第一次向子节点请求节点时调用。此时的典型实现计算其节点列表(或子节点的键。键等)。
注意:在这个方法中调用getNodes()将返回一个空的节点数组。

代码示例

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

/** Method that can be overriden in subclasses to
* do additional work and then call addNotify.
*/
void callAddNotify() {
  //System.err.println("Thread: " + Thread.currentThread().getName() + ", N: " + getNode());
  //System.err.println("Children: " + this);
  addNotify();
  //System.err.println("Finished: " + this);
}

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

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

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

/** Method that can be overriden in subclasses to
* do additional work and then call addNotify.
*/
void callAddNotify () {
  addNotify ();
}

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

/** Method that can be overriden in subclasses to
* do additional work and then call addNotify.
*/
void callAddNotify () {
  addNotify ();
}

相关文章