продолжение рефакторинга таблиц. перевод меню баров в интерфейс
This commit is contained in:
@@ -32,7 +32,7 @@ public class DVMConfigurationDBTable extends iDBTable<DVMConfiguration> {
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new DataSetControlForm(this,mountPanel) {
|
||||
return new DataSetControlForm(this, mountPanel) {
|
||||
@Override
|
||||
public boolean hasCheckBox() {
|
||||
return true;
|
||||
@@ -42,6 +42,16 @@ public class DVMConfigurationDBTable extends iDBTable<DVMConfiguration> {
|
||||
columns.get(6).setRendererClass(RendererMultiline.class);
|
||||
columns.get(6).setMaxWidth(500);
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(),
|
||||
PassCode.PublishConfiguration,
|
||||
PassCode.EditConfiguration,
|
||||
PassCode.ShowCurrentDVMConfigurationTests,
|
||||
PassCode.SaveCurrentDVMConfiguration,
|
||||
PassCode.DeleteConfiguration,
|
||||
PassCode.StartSelectedDVMConfigurations);
|
||||
}
|
||||
};
|
||||
}
|
||||
@Override
|
||||
@@ -120,16 +130,6 @@ public class DVMConfigurationDBTable extends iDBTable<DVMConfiguration> {
|
||||
return (Global.mainModule.getAccount().CheckAccessRights(((DVMConfiguration) object).sender_address, null)) ? super.ShowEditObjectDialog(object) : ViewObject(object);
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(),
|
||||
PassCode.PublishConfiguration,
|
||||
PassCode.EditConfiguration,
|
||||
PassCode.ShowCurrentDVMConfigurationTests,
|
||||
PassCode.SaveCurrentDVMConfiguration,
|
||||
PassCode.DeleteConfiguration,
|
||||
PassCode.StartSelectedDVMConfigurations);
|
||||
}
|
||||
@Override
|
||||
public PassCode_ getDeletePassCode() {
|
||||
return PassCode.DeleteConfiguration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user