eas之删除类别时刷新当前结点的父结点,并定位到当前结点的父结点。
KDTreeNode treeNode = (KDTreeNode) treeMain.getLastSelectedPathComponent();
if (treeNode != null && treeNode.getParent() != null)
{
TreePath parentPath = treeMain.getSelectionPath().getParentPath();
KDTreeNode parentNode = (KDTreeNode) treeNode.getParent();
parentNode.remove(treeNode);
treeMain.updateUI();
treeMain.setSelectionPath(parentPath);
treeBuilder.refreshTreeNode(treeMain , parentNode ,this.getDefaultFilterForTree());
treeMain.expandPath(parentPath);
}
承接钉钉定制;网站服务定制;
联系qq:1655119603