рефакторинг сохранения форм. не было единого интерфейса
This commit is contained in:
@@ -12,20 +12,20 @@ public class DBForm extends DBObject {
|
||||
public int Height = 0;
|
||||
public DBForm(String type_, Window window) {
|
||||
type = type_;
|
||||
Init(window);
|
||||
Fill(window);
|
||||
}
|
||||
public DBForm() {
|
||||
}
|
||||
public void Init(Window window) {
|
||||
X = window.getX();
|
||||
Y = window.getY();
|
||||
Width = window.getWidth();
|
||||
Height = window.getHeight();
|
||||
}
|
||||
public void Apply(Window window) {
|
||||
window.setSize(Width, Height);
|
||||
window.setLocation(X, Y);
|
||||
}
|
||||
public void Fill(Window window) {
|
||||
X = window.getX();
|
||||
Y = window.getY();
|
||||
Width = window.getWidth();
|
||||
Height = window.getHeight();
|
||||
}
|
||||
@Override
|
||||
public Object getPK() {
|
||||
return type;
|
||||
|
||||
Reference in New Issue
Block a user