вывод диалоговых форм для объектов в отдельный класс
This commit is contained in:
@@ -3,6 +3,7 @@ import Common.Database.Tables.DataSet;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import Common.Visual.Menus.DataMenuBar;
|
||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
@@ -38,6 +39,20 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
||||
"ревизия"};
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(Compiler object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 2:
|
||||
return object.description;
|
||||
case 3:
|
||||
return object.call_command;
|
||||
case 4:
|
||||
return object.version;
|
||||
case 5:
|
||||
return object.revision;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
}
|
||||
@@ -64,17 +79,7 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
||||
return super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id);
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(Compiler object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 2:
|
||||
return object.description;
|
||||
case 3:
|
||||
return object.call_command;
|
||||
case 4:
|
||||
return object.version;
|
||||
case 5:
|
||||
return object.revision;
|
||||
}
|
||||
return null;
|
||||
public DBObjectDialog getDialog() {
|
||||
return new CompilerDialog();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user