本文整理了Java中org.openide.nodes.Children.getNode()
方法的一些代码示例,展示了Children.getNode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Children.getNode()
方法的具体详情如下:
包路径:org.openide.nodes.Children
类名称:Children
方法名:getNode
[英]Get the parent node of these children.
[中]获取这些子节点的父节点。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Get the parent node.
* @return the parent node, or <CODE>null</CODE> if this node is the root of a hierarchy
*/
public final Node getParentNode() {
// if contained in a list return its parent node
Children ch = getParentChildren();
return (ch == null) ? null : ch.getNode();
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
"Cannot initialize " + index + "th child of node " + parent.getNode() +
"; it already belongs to node " + ch.getNode() + " (did you forgot to use cloneNode?)\nChildren of new node: " +
parentNodes + "\nChildren of old node: " +
chNodes
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Method that allows Children to change the parent children of
* the node when the node is add to a children.
*
* @param parent the children that wants to contain this node
* @param index index that will be assigned to this node
* @exception IllegalStateException if this node already belongs to a children
*/
final synchronized void assignTo (Children parent, int index) {
Children ch = getParentChildren ();
if (ch != null && ch != parent) {
throw new IllegalStateException ("Cannot initialize " + index + "th child of node " + parent.getNode () + "; it already belongs to node " + ch.getNode ()); // NOI18N
}
if ( ! ( this.parent instanceof ChildrenArray ) ) {
this.parent = parent;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Method that allows Children to change the parent children of
* the node when the node is add to a children.
*
* @param parent the children that wants to contain this node
* @param index index that will be assigned to this node
* @exception IllegalStateException if this node already belongs to a children
*/
final synchronized void assignTo (Children parent, int index) {
Children ch = getParentChildren ();
if (ch != null && ch != parent) {
throw new IllegalStateException ("Cannot initialize " + index + "th child of node " + parent.getNode () + "; it already belongs to node " + ch.getNode ()); // NOI18N
}
if ( ! ( this.parent instanceof ChildrenArray ) ) {
this.parent = parent;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Get the parent node.
* @return the parent node, or <CODE>null</CODE> if this node is the root of a hierarchy
*/
public final Node getParentNode () {
// if contained in a list return its parent node
Children ch = getParentChildren ();
return ch == null ? null : ch.getNode ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Get the parent node.
* @return the parent node, or <CODE>null</CODE> if this node is the root of a hierarchy
*/
public final Node getParentNode () {
// if contained in a list return its parent node
Children ch = getParentChildren ();
return ch == null ? null : ch.getNode ();
}
内容来源于网络,如有侵权,请联系作者删除!