SEBSERV-376 gui client view

This commit is contained in:
anhefti 2023-02-08 08:45:28 +01:00
parent 4bc0a2da06
commit 99b26e52d1

View file

@ -134,7 +134,8 @@ public class ClientConnectionDetails implements MonitoringEntry {
ClientConnection.ATTR_INFO,
CONNECTION_INFO_TEXT_KEY,
Constants.EMPTY_NOTE)
.asArea(50))
.asArea(50)
.asColorBox())
.withDefaultSpanInput(3)
.addField(FormBuilder.text(
Domain.CLIENT_CONNECTION.ATTR_STATUS,
@ -229,6 +230,7 @@ public class ClientConnectionDetails implements MonitoringEntry {
if (this.startTime < 0) {
this.startTime = System.currentTimeMillis();
}
}
public void updateGUI(
@ -317,6 +319,10 @@ public class ClientConnectionDetails implements MonitoringEntry {
if (notificationTable != null) {
notificationTable.refreshPageSize();
}
if (this.connectionData.clientConnection.clientVersionGranted != null &&
!this.connectionData.clientConnection.clientVersionGranted) {
form.setFieldColor(ClientConnection.ATTR_INFO, this.colorData.color2);
}
}
private String getConnectionInfo(final ClientConnection clientConnection) {