окончательное разделение таблицы и функционала видимой ее формы
This commit is contained in:
@@ -7,7 +7,6 @@ import Common.Database.Tables.iDBTable;
|
||||
import Common.Passes.PassCode_;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.SapforProfile.UI.SapforProfileFields;
|
||||
import _VisualDVM.GlobalData.SapforProfile.UI.SapforProfilesForm;
|
||||
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
||||
@@ -20,22 +19,10 @@ public class SapforProfilesDBTable extends iDBTable<SapforProfile> {
|
||||
super(SapforProfile.class);
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "профили SAPFOR";
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "профиль SAPFOR";
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new SapforProfilesForm(this, mountPanel);
|
||||
}
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
return Current.SapforProfile;
|
||||
}
|
||||
@Override
|
||||
public DBObjectDialog<SapforProfile, SapforProfileFields> getDialog() {
|
||||
return new DBObjectDialog<SapforProfile, SapforProfileFields>(SapforProfileFields.class) {
|
||||
@Override
|
||||
|
||||
@@ -2,6 +2,7 @@ package _VisualDVM.GlobalData.SapforProfile.UI;
|
||||
import Common.Database.Tables.DataSet;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import Common.Visual.Menus.DataMenuBar;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
|
||||
@@ -12,6 +13,18 @@ public class SapforProfilesForm extends DataSetControlForm<SapforProfile> {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
return Current.SapforProfile;
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "профили SAPFOR";
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "профиль SAPFOR";
|
||||
}
|
||||
@Override
|
||||
public boolean hasCheckBox() {
|
||||
return true;
|
||||
}
|
||||
@@ -35,7 +48,7 @@ public class SapforProfilesForm extends DataSetControlForm<SapforProfile> {
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
||||
return new DataMenuBar(getPluralDescription(),
|
||||
PassCode.SaveProfile,
|
||||
PassCode.EditProfile,
|
||||
PassCode.ApplyProfile,
|
||||
|
||||
Reference in New Issue
Block a user