2024-10-09 20:35:18 +03:00
|
|
|
package Common.Visual.Trees;
|
2024-10-08 00:39:13 +03:00
|
|
|
import Common.Visual.ControlForm;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
2024-10-17 20:04:16 +03:00
|
|
|
import javax.swing.*;
|
2025-01-29 14:32:20 +03:00
|
|
|
import javax.swing.tree.DefaultTreeModel;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class TreeForm<C extends StyledTree> extends ControlForm<C> {
|
2024-10-17 20:04:16 +03:00
|
|
|
public TreeForm(Class<C> class_in, JPanel mountPanel_in) {
|
|
|
|
|
super(class_in, mountPanel_in);
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
//временно, чтобы не затрагивать коды раньше времени.
|
|
|
|
|
public StyledTree getTree() {
|
|
|
|
|
return control;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
2024-10-17 20:04:16 +03:00
|
|
|
protected void redrawControl() {
|
2025-01-29 14:32:20 +03:00
|
|
|
((DefaultTreeModel)getTree().getModel()).reload();
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|