no message

This commit is contained in:
2024-10-08 16:59:20 +03:00
parent cba2c8ec34
commit 90546fc62e
9 changed files with 12 additions and 90 deletions

View File

@@ -0,0 +1,33 @@
package Common.Database.Objects.DBForm;
import Common.Database.Objects.DBObject;
import com.sun.org.glassfish.gmbal.Description;
import java.awt.*;
public class DBForm extends DBObject {
@Description("PRIMARY KEY,UNIQUE, NOT NULL")
public String type = null;
public int X = 0;
public int Y = 0;
public int Width = 0;
public int Height = 0;
public DBForm(String type_, Window window) {
type = type_;
Init(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);
}
@Override
public Object getPK() {
return type;
}
}

View File

@@ -0,0 +1,11 @@
package Common.Database.Objects.DBForm;
import Common.Database.Tables.DBTable;
public class FormsDBTable extends DBTable<String, DBForm> {
public FormsDBTable() {
super(String.class, DBForm.class);
}
@Override
public String getSingleDescription() {
return "параметры окна";
}
}