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

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

@@ -47,4 +47,18 @@ public class ServerSapfor extends riDBObject {
public String getVersionCommand() {
return Utils_.DQuotes(call_command) + " " + version_command;
}
@Override
public Object getFieldAt( int columnIndex) {
switch (columnIndex) {
case 2:
return version;
case 3:
return sender_name;
case 4:
return getBuildDate();
case 5:
return state;
}
return null;
}
}

View File

@@ -27,20 +27,7 @@ public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
public Current CurrentName() {
return Current.ServerSapfor;
}
@Override
public Object getFieldAt(ServerSapfor object, int columnIndex) {
switch (columnIndex) {
case 2:
return object.version;
case 3:
return object.sender_name;
case 4:
return object.getBuildDate();
case 5:
return object.state;
}
return null;
}
@Override
protected DataSetControlForm createUI(JPanel mountPanel) {
return new DataSetControlForm(this, mountPanel) {