|
|
|
@ -6,6 +6,7 @@ import javafx.scene.text.Text;
|
|
|
|
|
import model.Capteur;
|
|
|
|
|
import model.CapteurSimple;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.net.URL;
|
|
|
|
|
import java.util.ResourceBundle;
|
|
|
|
|
|
|
|
|
@ -19,17 +20,20 @@ public class VueCapteurSimple extends VueCapteur{
|
|
|
|
|
private Text valeurCapteur;
|
|
|
|
|
@FXML
|
|
|
|
|
private Spinner<Integer> spinTps;*/
|
|
|
|
|
Capteur capteur = new CapteurSimple("a","d");
|
|
|
|
|
Capteur capteur;
|
|
|
|
|
|
|
|
|
|
public VueCapteurSimple(Capteur capteur) {
|
|
|
|
|
super(capteur);
|
|
|
|
|
public VueCapteurSimple(Capteur capteur) throws IOException {
|
|
|
|
|
super(capteur,"views/CapteurSimple.fxml");
|
|
|
|
|
this.capteur=capteur;
|
|
|
|
|
idCapteur.textProperty().bindBidirectional(capteur.idProperty());
|
|
|
|
|
nomCapteur.textProperty().bindBidirectional(capteur.nomProperty());
|
|
|
|
|
capteur.setNom("aaa");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void initialize(URL url, ResourceBundle resourceBundle) {
|
|
|
|
|
nomCapteur.textProperty().bind(capteur.idProperty());
|
|
|
|
|
nomCapteur.textProperty().bind(capteur.nomProperty());
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
spinTps.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(0,10,1,1));
|
|
|
|
|
spinTps.valueFactoryProperty().bindBidirectional(capteur.tpsGenProperty());*/
|
|
|
|
|