перенос метода получающего поле объекта для отображения

This commit is contained in:
2024-10-20 13:34:38 +03:00
parent dc53ecd6c8
commit f13a9cda2e
76 changed files with 721 additions and 612 deletions

View File

@@ -5,4 +5,14 @@ public class DVMParameter extends EnvironmentValue {
public String toString() {
return name + "=" + value + ";";
}
@Override
public Object getFieldAt(int columnIndex) {
switch (columnIndex) {
case 1:
return name;
case 2:
return value;
}
return null;
}
}

View File

@@ -26,16 +26,6 @@ public class DVMParameterDBTable extends iDBTable<DVMParameter> {
return "параметры DVM";
}
@Override
public Object getFieldAt(DVMParameter object, int columnIndex) {
switch (columnIndex) {
case 1:
return object.name;
case 2:
return object.value;
}
return null;
}
@Override
public Current CurrentName() {
return Current.DVMParameterValue;
}