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

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

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

Node.fireSubNodesChange介绍

[英]Fires info about some structural change in children. Providing type of operation and set of children changed generates event describing the change.
[中]激发有关儿童某些结构变化的信息。提供操作类型和更改的子项集将生成描述更改的事件。

代码示例

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

/** Notifies that a set of nodes has been add to
 * children. It is necessary that the system is already
 * in consistent state, so any callbacks will return
 * valid values.
 *
 * @param nodes list of removed nodes
 */
void notifyAdd(Collection<Node> nodes) {
  if (LOGGER.isLoggable(Level.FINER)) {
    LOGGER.finer("notifyAdd: " + nodes);
  }
  // notify about parent change
  for (Node n : nodes) {
    n.assignTo(children, -1);
    n.fireParentNodeChange(null, children.parent);
  }
  Node[] arr = nodes.toArray(new Node[nodes.size()]);
  Node n = children.parent;
  if (n != null && children.getEntrySupport() == this) {
    n.fireSubNodesChange(true, arr, null);
  }
}

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

children.parent.fireSubNodesChange(false, arr, current);

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

/** Notifies that a set of nodes has been add to
* children. It is necessary that the system is already 
* in consistent state, so any callbacks will return 
* valid values.
*
* @param nodes list of removed nodes
*/
private void notifyAdd (Collection nodes) {
  // notify about parent change
  Iterator it = nodes.iterator ();
  while (it.hasNext ()) {
    Node n = (Node)it.next ();
    n.assignTo (this, -1);
    n.fireParentNodeChange (null, parent);
  }
  Node[] arr = (Node[])nodes.toArray (new Node[nodes.size ()]);
  Node n = parent;
  if (n != null) {
    n.fireSubNodesChange (
      true, arr, null
    );
  }
}

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

/** Notifies that a set of nodes has been add to
* children. It is necessary that the system is already 
* in consistent state, so any callbacks will return 
* valid values.
*
* @param nodes list of removed nodes
*/
private void notifyAdd (Collection nodes) {
  // notify about parent change
  Iterator it = nodes.iterator ();
  while (it.hasNext ()) {
    Node n = (Node)it.next ();
    n.assignTo (this, -1);
    n.fireParentNodeChange (null, parent);
  }
  Node[] arr = (Node[])nodes.toArray (new Node[nodes.size ()]);
  Node n = parent;
  if (n != null) {
    n.fireSubNodesChange (
      true, arr, null
    );
  }
}

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

parent.fireSubNodesChange (
  false,  // remove
  arr,

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

parent.fireSubNodesChange (
  false,  // remove
  arr,

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

fireSubNodesChange (false, oldNodes, oldNodes);
fireSubNodesChange (true, hierarchy.getNodes(), null);

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

fireSubNodesChange (false, oldNodes, oldNodes);
fireSubNodesChange (true, hierarchy.getNodes(), null);

相关文章

微信公众号

最新文章

更多