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