本文整理了Java中org.openide.nodes.Children.clone()
方法的一些代码示例,展示了Children.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Children.clone()
方法的具体详情如下:
包路径:org.openide.nodes.Children
类名称:Children
方法名:clone
[英]Handles cloning in the right way, that can be later extended by subclasses. Of course each subclass that wishes to support cloning must implement the Cloneable
interface, otherwise this method throws CloneNotSupportedException
.
[中]以正确的方式处理克隆,稍后可以通过子类进行扩展。当然,每个希望支持克隆的子类都必须实现Cloneable
接口,否则此方法会抛出CloneNotSupportedException
。
代码示例来源:origin: org.netbeans.api/org-openide-nodes
/** Allows access to the clone method for Node.
* @return cloned hierarchy
* @exception CloneNotSupportedException if not supported
*/
final Object cloneHierarchy() throws CloneNotSupportedException {
return clone();
}
代码示例来源:origin: org.netbeans.api/org-openide-nodes
public Object clone() {
try {
final Children.Array ar = (Array) super.clone();
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Allows access to the clone method for Node.
* @return cloned hierarchy
* @exception CloneNotSupportedException if not supported
*/
final Object cloneHierarchy () throws CloneNotSupportedException {
return clone ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Allows access to the clone method for Node.
* @return cloned hierarchy
* @exception CloneNotSupportedException if not supported
*/
final Object cloneHierarchy () throws CloneNotSupportedException {
return clone ();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
final Children.Array ar = (Array)super.clone ();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
final Children.Array ar = (Array)super.clone ();
内容来源于网络,如有侵权,请联系作者删除!