谁能帮我详细的讲讲这断java代码的意思

来源:百度知道 编辑:UC知道 时间:2024/06/27 22:45:26
treemodel = new ChildPropertyTreeModel(nodes, "children") {
public boolean isContainer() {
return ((GenericTreeNode)getRowData()).getChildCount() >
0;
}
};

new 的是一个继承于 ChildPropertyTreeModel 的新类,其中构造函数相当于调用了 super(nodes, "children"),并重载了基类的isContainer()方法。
如果其中包含成员树,则返回真,否则返回假