Ver código fonte

Merge remote-tracking branch 'origin/master'

testBranch
Nils Dittberner 10 anos atrás
pai
commit
fe225c278e
3 arquivos alterados com 45 adições e 2 exclusões
  1. +3
    -0
      src/main/java/de/uniluebeck/mi/projmi6/view/DateTimePicker.java
  2. +1
    -1
      src/main/resources/fall.fxml
  3. +41
    -1
      src/main/resources/style.css

+ 3
- 0
src/main/java/de/uniluebeck/mi/projmi6/view/DateTimePicker.java Ver arquivo

@@ -94,9 +94,12 @@ public class DateTimePicker extends HBox {
btnNow.setOnAction(event -> setToCurrentDateTime());
//Make it large enough to read the text
btnNow.setMinWidth(50);
btnNow.getStyleClass().add("now-button");

//Add the subcomponents to the view.
this.getChildren().addAll(datePicker,timePicker,btnNow);


this.setSpacing(5);
}



+ 1
- 1
src/main/resources/fall.fxml Ver arquivo

@@ -10,7 +10,7 @@
<?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">
<children>
<GridPane vgap="5.0" fx:id="fallFields">
<GridPane vgap="5.0" fx:id="fallFields" id="fallFields">
<children>
<Label text="Patient:"/>
<Label fx:id="fallPatID" text="John Doe (PatID = XXX)" GridPane.columnIndex="1"/>


+ 41
- 1
src/main/resources/style.css Ver arquivo

@@ -4,4 +4,44 @@

.ersteller-value {
/* -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;
}


Carregando…
Cancelar
Salvar