|
|
|
@@ -0,0 +1,49 @@ |
|
|
|
package de.uniluebeck.mi.projmi6.controller; |
|
|
|
|
|
|
|
import de.uniluebeck.mi.projmi6.model.HL7LogEntry; |
|
|
|
import javafx.fxml.FXML; |
|
|
|
import javafx.scene.control.TableColumn; |
|
|
|
import javafx.scene.control.TableView; |
|
|
|
import javafx.scene.control.cell.PropertyValueFactory; |
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Created by 631806 on 19.11.15. |
|
|
|
*/ |
|
|
|
public class LogController { |
|
|
|
final MainController mainController; |
|
|
|
|
|
|
|
@FXML |
|
|
|
TableView<HL7LogEntry> tblLog; |
|
|
|
|
|
|
|
@FXML |
|
|
|
TableColumn<HL7LogEntry, String> colLogIp, colLogMessage; |
|
|
|
|
|
|
|
@FXML |
|
|
|
TableColumn<HL7LogEntry, LocalDateTime> colLogTime; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LogController(MainController mainController) { |
|
|
|
this.mainController = mainController; |
|
|
|
|
|
|
|
//TODO Set DB entrys |
|
|
|
} |
|
|
|
|
|
|
|
@FXML |
|
|
|
private void initialize(){ |
|
|
|
initColumns(); |
|
|
|
} |
|
|
|
|
|
|
|
private void initColumns(){ |
|
|
|
colLogIp.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, String>("source")); |
|
|
|
colLogTime.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, LocalDateTime>("timestamp")); |
|
|
|
colLogIp.setCellValueFactory(new PropertyValueFactory<HL7LogEntry, String>("message")); |
|
|
|
} |
|
|
|
|
|
|
|
public void refreshLogFromDb(){ |
|
|
|
//TODO |
|
|
|
} |
|
|
|
} |