Dernier push

master
Paul SQUIZZATO 2 years ago
parent f42f02ceca
commit 1e35408e0b

@ -8,7 +8,6 @@
<TreeView xmlns="http://javafx.com/javafx" <TreeView xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml" xmlns:fx="http://javafx.com/fxml"
fx:controller="view.VueCapteurCompose"
prefHeight="400.0" prefWidth="600.0"> prefHeight="400.0" prefWidth="600.0">
<!--<TreeItem fx:id="capteurs"/>--> <TreeItem fx:id="capteurs"/>
</TreeView> </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 { public VueCapteur(Capteur capteur,String url) throws IOException {
super(url, capteur.getNom()); super(url, capteur.getNom());
capt=capteur; capt=capteur;
capt.start(); //capt.start();
thread=new Thread(capteur); thread=new Thread(capteur);
thread.start(); thread.start();
} }

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

Loading…
Cancel
Save