浏览代码

Log hat jetzt Spalte direction

testBranch
Johannes Oehm 10 年前
父节点
当前提交
ab0e60f61f
共有 2 个文件被更改,包括 6 次插入0 次删除
  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 查看文件

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


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


@FXML
Button btnRefresh; Button btnRefresh;




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


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


+ 1
- 0
src/main/resources/log.fxml 查看文件

@@ -17,6 +17,7 @@
</ToolBar> </ToolBar>
<TableView fx:id="tblLog" VBox.vgrow="ALWAYS"> <TableView fx:id="tblLog" VBox.vgrow="ALWAYS">
<columns> <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="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="colLogTime" editable="false" maxWidth="200.0" minWidth="150.0" text="Uhrzeit" />
<TableColumn fx:id="colLogMessage" editable="false" prefWidth="75.0" text="Nachricht" /> <TableColumn fx:id="colLogMessage" editable="false" prefWidth="75.0" text="Nachricht" />


正在加载...
取消
保存