Przeglądaj źródła

Log hat jetzt Spalte direction

testBranch
Johannes Oehm 10 lat temu
rodzic
commit
ab0e60f61f
2 zmienionych plików z 6 dodań i 0 usunięć
  1. +5
    -0
      src/main/java/de/uniluebeck/mi/projmi6/controller/LogController.java
  2. +1
    -0
      src/main/resources/log.fxml

+ 5
- 0
src/main/java/de/uniluebeck/mi/projmi6/controller/LogController.java Wyświetl plik

@@ -29,6 +29,10 @@ public class LogController {
TableColumn<HL7LogEntry, LocalDateTime> colLogTime;

@FXML
TableColumn<HL7LogEntry, HL7LogEntry.Direction> colLogDirection;


@FXML
Button btnRefresh;


@@ -44,6 +48,7 @@ public class LogController {
}

private void initColumns(){
colLogDirection.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, HL7LogEntry.Direction>("direction"));
colLogIp.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, String>("source"));
colLogTime.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, LocalDateTime>("timestamp"));
colLogMessage.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, String>("message"));


+ 1
- 0
src/main/resources/log.fxml Wyświetl plik

@@ -17,6 +17,7 @@
</ToolBar>
<TableView fx:id="tblLog" VBox.vgrow="ALWAYS">
<columns>
<TableColumn fx:id="colLogDirection" editable="false" maxWidth="50.0" minWidth="75.0" text="Richtung" />
<TableColumn fx:id="colLogIp" editable="false" maxWidth="200.0" minWidth="150.0" text="Ursprungs-IP" />
<TableColumn fx:id="colLogTime" editable="false" maxWidth="200.0" minWidth="150.0" text="Uhrzeit" />
<TableColumn fx:id="colLogMessage" editable="false" prefWidth="75.0" text="Nachricht" />


Ładowanie…
Anuluj
Zapisz