Dernier push

master
Paul SQUIZZATO 2 years ago
parent f42f02ceca
commit 1e35408e0b

@ -8,7 +8,6 @@
<TreeView xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="view.VueCapteurCompose"
prefHeight="400.0" prefWidth="600.0">
<!--<TreeItem fx:id="capteurs"/>-->
<TreeItem fx:id="capteurs"/>
</TreeView>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
prefHeight="400.0" prefWidth="600.0">
<Label text="Nom du capteur"/>
<TextField fx:id="nomCapteur"/>
<Label text="Temperature captée"/>
<Label fx:id="valeurCapteur"/>
<Label text="id du capteur"/>
<Label fx:id="idCapteur"/>
</VBox>

@ -12,7 +12,7 @@ public abstract class VueCapteur extends FXMLwindow implements Initializable{
public VueCapteur(Capteur capteur,String url) throws IOException {
super(url, capteur.getNom());
capt=capteur;
capt.start();
//capt.start();
thread=new Thread(capteur);
thread.start();
}

@ -5,15 +5,17 @@ import model.Capteur;
import java.io.IOException;
import javafx.scene.control.*;
import model.CapteurCompose;
import java.net.URL;
import java.util.ResourceBundle;
public class VueCapteurCompose extends VueCapteur{
public VueCapteurCompose(Capteur capteur) throws IOException {
@FXML
private TreeItem<Capteur> capteurs;
public VueCapteurCompose(CapteurCompose capteur) throws IOException {
super(capteur,"views/CapteurCompose.fxml");
}
//@FXML
//private TreeItem<Capteur> capteurs;
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {

Loading…
Cancel
Save