no message

This commit is contained in:
2024-10-17 20:31:06 +03:00
parent 3b5bffe998
commit 7b56eae371
13 changed files with 24 additions and 38 deletions

View File

@@ -1,22 +1,23 @@
package Common.Visual.Trees;
import Common.Current_;
import Common.MainModule_;
import Common.Utils.Utils_;
import Common.Visual.DataControl_OLD;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreePath;
public class DataTree extends StyledTree implements DataControl_OLD {
public class DataTree extends StyledTree{
public DataTree(DefaultMutableTreeNode root_in) {
super(root_in);
}
public void ChangeCurrentObject(DefaultMutableTreeNode node) {
if (getCurrent() != null)
MainModule_.instance.set(getCurrent(), node.getUserObject());
if (currentName() != null)
MainModule_.instance.set(currentName(), node.getUserObject());
}
public Current_ currentName() {
return null;
}
@Override
public void ShowCurrentObject() throws Exception {
}
@Override
public void ShowNoCurrentObject() throws Exception {
}
@Override

View File

@@ -9,7 +9,7 @@ public class SelectableTree extends DataTree {
}
@Override
public void LeftMouseAction1() {
Object element = MainModule_.instance.get(getCurrent());
Object element = MainModule_.instance.get(currentName());
if ((element instanceof Selectable)) {
((Selectable) element).SwitchSelection();
updateUI();