Skip to content
Snippets Groups Projects
Commit fe754e40 authored by Théo Pirkl's avatar Théo Pirkl :nail_care:
Browse files

Implements basic behavioural draft

parent f2ba3de5
No related branches found
No related tags found
3 merge requests!21*poof* final version,!16Gui transport,!11Gui transport
package ch.hepia.ui;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import java.awt.*;
import java.net.URL;
import java.util.ResourceBundle;
public class MainWindowController implements Initializable {
@FXML
private Label currentJourneyLabel;
@FXML
private Label startStopLabel;
@FXML
public void handleTo(ActionEvent event) throws Exception {}
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
currentJourneyLabel.setText("Vous n'avez prévu aucun voyage pour le moment.");
}
}
......@@ -8,11 +8,11 @@
<?import javafx.scene.layout.*?>
<?import javafx.collections.FXCollections?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="565.0" prefWidth="1000.0" style="-fx-background-color: #fafafa;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="565.0" prefWidth="1000.0" style="-fx-background-color: #fafafa;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ch.hepia.ui.MainWindowController">
<top>
<Pane maxHeight="48.0" maxWidth="1000.0" minHeight="48.0" minWidth="32.0" prefHeight="48.0" prefWidth="32.0" style="-fx-background-color: #35B1EE;" BorderPane.alignment="CENTER">
<children>
<ComboBox id="stopComboBox" fx:id="stopComboBox" editable="true" layoutX="12.0" layoutY="10.0" prefHeight="27.0" prefWidth="275.0" promptText="Tapez le nom d'un arrêt..." />
<ComboBox id="stopComboBox" fx:id="stopComboBox" editable="true" layoutX="12.0" layoutY="10.0" onInputMethodTextChanged="#test" prefHeight="27.0" prefWidth="275.0" promptText="Tapez le nom d'un arrêt..." />
<Line endY="48.0" layoutX="300.0" startY="1.0">
<stroke>
<LinearGradient>
......@@ -34,6 +34,7 @@
</LinearGradient>
</stroke>
</Line>
<Label id="currentJourneyLabel" fx:id="currentJourneyLabel" layoutX="611.0" layoutY="16.0" text="Voyage actuel" textFill="WHITE" />
</children>
</Pane>
</top>
......@@ -43,7 +44,7 @@
<center>
<Pane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Label id="StopLabel" fx:id="StopLabel" layoutX="14.0" layoutY="14.0" text="Arrêt : CHANGEZ-MOI" textFill="#4c7ba8">
<Label id="startStopLabel" fx:id="startStopLabel" layoutX="14.0" layoutY="14.0" text="Arrêt : CHANGEZ-MOI" textFill="#4c7ba8">
<font>
<Font size="28.0" />
</font>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment