no message
This commit is contained in:
33
src/Common/Database/Objects/DBForm/DBForm.java
Normal file
33
src/Common/Database/Objects/DBForm/DBForm.java
Normal 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;
|
||||
}
|
||||
}
|
||||
11
src/Common/Database/Objects/DBForm/FormsDBTable.java
Normal file
11
src/Common/Database/Objects/DBForm/FormsDBTable.java
Normal 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 "параметры окна";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user