Advertisement
Spirit13300

ClassementView.fxml

Jun 7th, 2018
3,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 7.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import fr.univ_amu.iut.Person?>
  4. <?import javafx.collections.FXCollections?>
  5. <?import javafx.geometry.Insets?>
  6. <?import javafx.scene.control.Label?>
  7. <?import javafx.scene.control.TableColumn?>
  8. <?import javafx.scene.control.TableView?>
  9. <?import javafx.scene.control.cell.PropertyValueFactory?>
  10. <?import javafx.scene.image.Image?>
  11. <?import javafx.scene.image.ImageView?>
  12. <?import javafx.scene.layout.ColumnConstraints?>
  13. <?import javafx.scene.layout.GridPane?>
  14. <?import javafx.scene.layout.RowConstraints?>
  15. <?import javafx.scene.shape.Rectangle?>
  16. <?import javafx.scene.text.Font?>
  17. <?import javafx.scene.text.Text?>
  18.  
  19. <fx:root alignment="TOP_LEFT" stylesheets="@ArmatureStyle.css" type="javafx.scene.layout.GridPane" vgap="40" xmlns="http://javafx.com/javafx/8.0.121" xmlns:fx="http://javafx.com/fxml/1">
  20.     <Rectangle fx:id="menu" height="1090.0" width="270.0" GridPane.columnIndex="0" GridPane.rowIndex="0" GridPane.rowSpan="2147483647" />
  21.     <Rectangle fx:id="banniere" height="170.0" width="1200.0" GridPane.columnIndex="1" GridPane.rowIndex="0" />
  22.     <Text fx:id="banniereText" fill="WHITE" text="Seek'n'Play" GridPane.columnIndex="1" GridPane.rowIndex="0">
  23.         <GridPane.margin>
  24.             <Insets left="480.0" />
  25.         </GridPane.margin>
  26.         <font>
  27.             <Font size="36.0" />
  28.         </font></Text>
  29.     <TableView fx:id="tableView" maxHeight="1500.0" maxWidth="1000.0" minHeight="500.0" minWidth="0.0" prefHeight="689" prefWidth="1512" GridPane.columnIndex="1" GridPane.rowIndex="3" GridPane.rowSpan="6">
  30.         <columns>
  31.             <TableColumn prefWidth="200" text="Rang">
  32.                 <cellValueFactory><PropertyValueFactory property="rang" />
  33.                 </cellValueFactory>
  34.             </TableColumn>
  35.             <TableColumn prefWidth="100.0" text="Pseudo">
  36.                 <cellValueFactory><PropertyValueFactory property="pseudo" />
  37.                 </cellValueFactory>
  38.             </TableColumn>
  39.             <TableColumn prefWidth="350" text="Nom">
  40.                 <cellValueFactory><PropertyValueFactory property="nom" />
  41.                 </cellValueFactory>
  42.             </TableColumn>
  43.             <TableColumn prefWidth="350" text="Prénom">
  44.                 <cellValueFactory><PropertyValueFactory property="prenom" />
  45.                 </cellValueFactory>
  46.             </TableColumn>
  47.             <TableColumn prefWidth="260" text="Score">
  48.                 <cellValueFactory><PropertyValueFactory property="score" />
  49.                 </cellValueFactory>
  50.             </TableColumn>
  51.         </columns>
  52.         <items>
  53.             <FXCollections fx:factory="observableArrayList">
  54.                 <Person nom="TARFI" prenom="Emma" pseudo="Algpo" rang="1" score="5000" />
  55.                 <Person nom="ROHRBACH" prenom="Nicolas" pseudo="Nicochoco" rang="2" score="4500" />
  56.                 <Person nom="POUJOL" prenom="Théo" pseudo="Luxx" rang="3" score="4000" />
  57.                 <Person nom="VINCENT" prenom="Léo" pseudo="Cutman" rang="4" score="3250" />
  58.                 <Person nom="MARTINEZ" prenom="Nicolas" pseudo="Fantôme" rang="5" score="3000" />
  59.                 <Person nom="ZOMBRALIS" prenom="Antoine" pseudo="CubitoineRizoto" rang="6" score="100" />
  60.             </FXCollections>
  61.         </items>
  62.       <GridPane.margin>
  63.          <Insets left="100.0" />
  64.       </GridPane.margin>
  65.     </TableView>
  66.  
  67.     <Label fx:id="Classement" contentDisplay="TOP" text="Classement" GridPane.columnIndex="1" GridPane.rowIndex="1">
  68.         <font>
  69.             <Font name="Tahoma Bold" size="33.0" />
  70.         </font>
  71.         <GridPane.margin>
  72.             <Insets bottom="50.0" left="400.0" />
  73.         </GridPane.margin></Label>
  74.  
  75.  
  76.     <ImageView fitWidth="150" preserveRatio="true" smooth="true" GridPane.columnIndex="0" GridPane.rowIndex="0">
  77.         <image>
  78.             <Image url="https://zupimages.net/up/18/21/08z7.png" />
  79.         </image>
  80.         <GridPane.margin>
  81.             <Insets left="60.0" />
  82.         </GridPane.margin>
  83.     </ImageView>
  84.     <ImageView fitWidth="150" preserveRatio="true" smooth="true" GridPane.columnIndex="1" GridPane.rowIndex="0">
  85.         <image>
  86.             <Image url="https://zupimages.net/up/18/22/do5r.jpg" />
  87.         </image>
  88.         <GridPane.margin>
  89.             <Insets left="750.0" />
  90.         </GridPane.margin>
  91.     </ImageView>
  92.     <ImageView fitWidth="150" preserveRatio="true" smooth="true" GridPane.columnIndex="1" GridPane.rowIndex="0">
  93.         <image>
  94.             <Image url="https://zupimages.net/up/18/22/do5r.jpg" />
  95.         </image>
  96.         <GridPane.margin>
  97.             <Insets left="250.0" />
  98.         </GridPane.margin>
  99.     </ImageView>
  100.     <Text fx:id="connexion" fill="WHITE" text="Connexion" GridPane.columnIndex="0" GridPane.columnSpan="8" GridPane.rowIndex="1">
  101.         <GridPane.margin>
  102.             <Insets left="78.0" />
  103.         </GridPane.margin>
  104.         <font>
  105.             <Font size="24.0" />
  106.         </font></Text>
  107.     <Text id="menu1" fx:id="menu1" fill="WHITE" text="Accueil" GridPane.columnIndex="0" GridPane.rowIndex="3">
  108.         <GridPane.margin>
  109.             <Insets left="105.0" />
  110.         </GridPane.margin>
  111.         <font>
  112.             <Font size="18.0" />
  113.         </font></Text>
  114.     <Text fx:id="menu2" fill="WHITE" text="Evénements" GridPane.columnIndex="0" GridPane.rowIndex="4">
  115.         <GridPane.margin>
  116.             <Insets left="87.0" />
  117.         </GridPane.margin>
  118.         <font>
  119.             <Font size="18.0" />
  120.         </font></Text>
  121.     <Text fx:id="menu3" fill="WHITE" text="A venir" GridPane.columnIndex="0" GridPane.rowIndex="5">
  122.         <GridPane.margin>
  123.             <Insets left="108.0" />
  124.         </GridPane.margin>
  125.         <font>
  126.             <Font size="18.0" />
  127.         </font></Text>
  128.     <Text fx:id="menu4" fill="WHITE" text="Classement" GridPane.columnIndex="0" GridPane.rowIndex="6">
  129.         <GridPane.margin>
  130.             <Insets left="90.0" />
  131.         </GridPane.margin>
  132.         <font>
  133.             <Font size="18.0" />
  134.         </font></Text>
  135.     <Text fx:id="menu5" fill="WHITE" text="Inscription" GridPane.columnIndex="0" GridPane.rowIndex="7">
  136.         <GridPane.margin>
  137.             <Insets left="95.0" />
  138.         </GridPane.margin>
  139.         <font>
  140.             <Font size="18.0" />
  141.         </font></Text>
  142.     <Text fx:id="menu6" fill="WHITE" text="Vos discussions" GridPane.columnIndex="0" GridPane.rowIndex="8">
  143.         <GridPane.margin>
  144.             <Insets left="73.0" />
  145.         </GridPane.margin>
  146.         <font>
  147.             <Font size="18.0" />
  148.         </font></Text>
  149.     <rowConstraints>
  150.         <RowConstraints />
  151.         <RowConstraints maxHeight="24.0" minHeight="0.0" prefHeight="24.0" />
  152.         <RowConstraints maxHeight="29.0" minHeight="0.0" prefHeight="0.0" />
  153.         <RowConstraints />
  154.         <RowConstraints />
  155.         <RowConstraints />
  156.         <RowConstraints />
  157.         <RowConstraints maxHeight="25.0" minHeight="0.0" prefHeight="25.0" />
  158.         <RowConstraints maxHeight="20.0" minHeight="0.0" prefHeight="20.0" />
  159.     </rowConstraints>
  160.    <columnConstraints>
  161.       <ColumnConstraints />
  162.       <ColumnConstraints />
  163.       <ColumnConstraints />
  164.       <ColumnConstraints />
  165.       <ColumnConstraints />
  166.       <ColumnConstraints />
  167.       <ColumnConstraints />
  168.       <ColumnConstraints />
  169.    </columnConstraints>
  170. </fx:root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement