classnode.java

来自「办公自动化项目」· Java 代码 · 共 22 行

JAVA
22
字号
package hong.javanet.util.tree;

public class ClassNode extends TreeNode {
    public ClassNode(Class clazz) {
        this.setKey(clazz);
        this.setParentKey(clazz.getSuperclass());
    }

    protected TreeNode cloneNode(Object newkey) {
        ClassNode node = new ClassNode((Class) newkey);
        node.setTree(this.getTree());
        node.setOther(this.getOther());
//        node.setDataInheritParent(this.getDataInheritParent());
//        node.setDataIncludeChildren(this.getDataIncludeChildren());
        node.setValue(this.getValue());
//        node.setStopToChildred(this.isStopToChildred());
//        node.setStopToParent(this.isStopToParent());
        return node;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?