рефакторинг контролов таблиц. убрал странный и запутанный старый код
This commit is contained in:
@@ -2,29 +2,19 @@ package Common.Visual.Trees;
|
||||
import Common.Visual.ControlForm;
|
||||
import Common.Visual.UI;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
public class TreeForm<C extends StyledTree> extends ControlForm<C> {
|
||||
public TreeForm(Class<C> class_in) {
|
||||
super(class_in);
|
||||
public TreeForm(Class<C> class_in, JPanel mountPanel_in) {
|
||||
super(class_in, mountPanel_in);
|
||||
}
|
||||
//временно, чтобы не затрагивать коды раньше времени.
|
||||
public StyledTree getTree() {
|
||||
return control;
|
||||
}
|
||||
@Override
|
||||
protected void refresh() {
|
||||
protected void redrawControl() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user