本文整理了Java中org.openide.nodes.Node.updateChildren()
方法的一些代码示例,展示了Node.updateChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.updateChildren()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:updateChildren
[英]Can be overriden in subclasses (probably in FilterNode) to check whether children are of the right subclass
[中]可以在子类(可能在FilterNode中)中重写,以检查子类是否属于正确的子类
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Get the list of children.
* @return the children
*/
public final Children getChildren() {
updateChildren();
return hierarchy;
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Test whether the node is a leaf, or may contain children.
* @return <code>true</code> if the children list is actually {@link Children#LEAF}
*/
public final boolean isLeaf() {
updateChildren();
return hierarchy == Children.LEAF;
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/**
* This method is used to change the Children from Children.LEAF to Children
* typically used to when there is a setChildren() on the original node
* setChildren will fire the appropriate events
*/
@Override
final void updateChildren() {
if (isDefault()) {
org.openide.nodes.Children newChildren = null;
try {
Children.PR.enterReadAccess();
if ((original.hierarchy == Children.LEAF) && (hierarchy != Children.LEAF)) {
newChildren = Children.LEAF;
} else if ((original.hierarchy != Children.LEAF) && (hierarchy == Children.LEAF)) {
newChildren = new Children(original);
}
} finally {
Children.PR.exitReadAccess();
}
if (newChildren != null) {
setChildren(newChildren);
}
} else {
super.updateChildren();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Get the list of children.
* @return the children
*/
public final Children getChildren () {
updateChildren ();
return hierarchy;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Test whether the node is a leaf, or may contain children.
* @return <code>true</code> if the children list is actually {@link Children#LEAF}
*/
public final boolean isLeaf () {
updateChildren ();
return hierarchy == Children.LEAF;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Get the list of children.
* @return the children
*/
public final Children getChildren () {
updateChildren ();
return hierarchy;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Test whether the node is a leaf, or may contain children.
* @return <code>true</code> if the children list is actually {@link Children#LEAF}
*/
public final boolean isLeaf () {
updateChildren ();
return hierarchy == Children.LEAF;
}
内容来源于网络,如有侵权,请联系作者删除!