рефакторинг интерфейса таблиц. все же, вывел их в полноценные классы,с указанием типа объектов к ним относящихся
This commit is contained in:
@@ -2,6 +2,7 @@ package _VisualDVM.GlobalData.SapforProfileSetting;
|
||||
import Common.Database.Tables.iDBTable;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.SapforProfileSetting.UI.SapforProfileSettingsForm;
|
||||
|
||||
import javax.swing.*;
|
||||
public class SapforProfileSettingsDBTable extends iDBTable<SapforProfileSetting> {
|
||||
@@ -10,23 +11,7 @@ public class SapforProfileSettingsDBTable extends iDBTable<SapforProfileSetting>
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new DataSetControlForm(this, mountPanel) {
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"имя",
|
||||
"значение"
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
}
|
||||
@Override
|
||||
public boolean hasMenuBar() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
return new SapforProfileSettingsForm(this, mountPanel);
|
||||
}
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package _VisualDVM.GlobalData.SapforProfileSetting.UI;
|
||||
import Common.Database.Tables.DataSet;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
||||
|
||||
import javax.swing.*;
|
||||
public class SapforProfileSettingsForm extends DataSetControlForm<SapforProfileSetting> {
|
||||
public SapforProfileSettingsForm(DataSet<?, SapforProfileSetting> dataSource_in, JPanel mountPanel_in) {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"имя",
|
||||
"значение"
|
||||
};
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
}
|
||||
@Override
|
||||
public boolean hasMenuBar() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user