| @@ -8,7 +8,7 @@ import java.sql.SQLException; | |||||
| * MySQL Connection Factory. | * MySQL Connection Factory. | ||||
| */ | */ | ||||
| public class MySqlConnFactory { | public class MySqlConnFactory { | ||||
| public static final String URL = "jdbc:mysql://141.83.20.84:3306/pmiw15g06_v01"; | |||||
| public static final String URL = "jdbc:mysql://localhost:3306/pmiw15g06_v01"; | |||||
| public static final String USER = "pmiw15g06"; | public static final String USER = "pmiw15g06"; | ||||
| public static final String PASS = "AX3yQSYJSH43PrSz"; | public static final String PASS = "AX3yQSYJSH43PrSz"; | ||||
| public static final String DRIVER = "com.mysql.jdbc.Driver"; | public static final String DRIVER = "com.mysql.jdbc.Driver"; | ||||
| @@ -94,9 +94,12 @@ public class DateTimePicker extends HBox { | |||||
| btnNow.setOnAction(event -> setToCurrentDateTime()); | btnNow.setOnAction(event -> setToCurrentDateTime()); | ||||
| //Make it large enough to read the text | //Make it large enough to read the text | ||||
| btnNow.setMinWidth(50); | btnNow.setMinWidth(50); | ||||
| btnNow.getStyleClass().add("now-button"); | |||||
| //Add the subcomponents to the view. | //Add the subcomponents to the view. | ||||
| this.getChildren().addAll(datePicker,timePicker,btnNow); | this.getChildren().addAll(datePicker,timePicker,btnNow); | ||||
| this.setSpacing(5); | this.setSpacing(5); | ||||
| } | } | ||||
| @@ -10,7 +10,7 @@ | |||||
| <?import de.uniluebeck.mi.projmi6.view.DateTimePicker?> | <?import de.uniluebeck.mi.projmi6.view.DateTimePicker?> | ||||
| <VBox fx:controller="de.uniluebeck.mi.projmi6.controller.FallController" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> | <VBox fx:controller="de.uniluebeck.mi.projmi6.controller.FallController" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> | ||||
| <children> | <children> | ||||
| <GridPane vgap="5.0" fx:id="fallFields"> | |||||
| <GridPane vgap="5.0" fx:id="fallFields" id="fallFields"> | |||||
| <children> | <children> | ||||
| <Label text="Patient:"/> | <Label text="Patient:"/> | ||||
| <Label fx:id="fallPatID" text="John Doe (PatID = XXX)" GridPane.columnIndex="1"/> | <Label fx:id="fallPatID" text="John Doe (PatID = XXX)" GridPane.columnIndex="1"/> | ||||
| @@ -4,4 +4,44 @@ | |||||
| .ersteller-value { | .ersteller-value { | ||||
| /* -fx-text-fill: red; */ | /* -fx-text-fill: red; */ | ||||
| } | |||||
| } | |||||
| DateTimePicker .text-field{ | |||||
| -fx-background-color:transparent; | |||||
| } | |||||
| #fallFields:disabled{ | |||||
| -fx-opacity: 1; | |||||
| } | |||||
| #fallFields:disabled HBox { | |||||
| -fx-opacity: 1; | |||||
| } | |||||
| #fallFields:disabled .text-field{ | |||||
| -fx-text-fill: black; | |||||
| -fx-background-color: transparent; | |||||
| -fx-opacity: 1; | |||||
| } | |||||
| #fallFields:disabled Label{ | |||||
| -fx-opacity: 1; | |||||
| } | |||||
| #fallFields:disabled ComboBox{ | |||||
| -fx-opacity: 1; | |||||
| -fx-background-color: transparent; | |||||
| } | |||||
| #fallFields:disabled .arrow-button{ | |||||
| -fx-opacity: 0; | |||||
| } | |||||
| #fallFields:disabled .arrow{ | |||||
| -fx-opacity: 0; | |||||
| } | |||||
| #fallFields:disabled .date-picker { | |||||
| -fx-opacity: 1; | |||||
| -fx-background-color: transparent; | |||||
| } | |||||
| #fallFields:disabled .now-button { | |||||
| visibility: hidden; | |||||
| } | |||||