2024-10-07 00:58:29 +03:00
|
|
|
package Common_old.UI.Trees;
|
|
|
|
|
import Common_old.UI.ControlForm;
|
|
|
|
|
import Common_old.UI.UI;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
public class TreeForm<C extends StyledTree> extends ControlForm<C> {
|
|
|
|
|
public TreeForm(Class<C> class_in) {
|
|
|
|
|
super(class_in);
|
|
|
|
|
}
|
|
|
|
|
//временно, чтобы не затрагивать коды раньше времени.
|
|
|
|
|
public StyledTree getTree() {
|
|
|
|
|
return control;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void refresh() {
|
|
|
|
|
getTree().revalidate();
|
|
|
|
|
getTree().repaint();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void Show() {
|
|
|
|
|
super.Show();
|
|
|
|
|
content.add(scroll, BorderLayout.CENTER);
|
|
|
|
|
content.updateUI();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void Clear() {
|
|
|
|
|
super.Clear();
|
|
|
|
|
UI.Clear(content);
|
|
|
|
|
}
|
|
|
|
|
}
|