本文整理了Java中org.openide.nodes.Node.fireSubNodesChange()
方法的一些代码示例,展示了Node.fireSubNodesChange()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.fireSubNodesChange()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!