|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<?import javafx.geometry.Insets?> |
| 4 | +<?import javafx.scene.control.Button?> |
| 5 | +<?import javafx.scene.control.ButtonBar?> |
| 6 | +<?import javafx.scene.control.CheckBox?> |
| 7 | +<?import javafx.scene.control.ComboBox?> |
| 8 | +<?import javafx.scene.control.Label?> |
| 9 | +<?import javafx.scene.control.TextField?> |
| 10 | +<?import javafx.scene.layout.AnchorPane?> |
| 11 | +<?import javafx.scene.layout.ColumnConstraints?> |
| 12 | +<?import javafx.scene.layout.GridPane?> |
| 13 | +<?import javafx.scene.layout.HBox?> |
| 14 | +<?import javafx.scene.layout.RowConstraints?> |
| 15 | +<?import javafx.scene.layout.VBox?> |
| 16 | +<?import javafx.scene.text.Font?> |
| 17 | +<?import sample.util.MaskField?> |
| 18 | + |
| 19 | +<AnchorPane xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.controller.Registration"> |
| 20 | + <children> |
| 21 | + <VBox alignment="TOP_CENTER" layoutX="49.0" prefHeight="400.0" prefWidth="320.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> |
| 22 | + <children> |
| 23 | + <Label fx:id="label" text="" textAlignment="CENTER"> |
| 24 | + <font> |
| 25 | + <Font name="Calibri" size="30.0" /> |
| 26 | + </font> |
| 27 | + </Label> |
| 28 | + <GridPane alignment="TOP_RIGHT" hgap="10.0" prefHeight="307.0" prefWidth="310.0" vgap="10.0"> |
| 29 | + <columnConstraints> |
| 30 | + <ColumnConstraints halignment="RIGHT" hgrow="SOMETIMES" maxWidth="154.0" minWidth="10.0" prefWidth="61.0" /> |
| 31 | + <ColumnConstraints hgrow="SOMETIMES" maxWidth="274.0" minWidth="10.0" prefWidth="239.0" /> |
| 32 | + </columnConstraints> |
| 33 | + <rowConstraints> |
| 34 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 35 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 36 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 37 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 38 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 39 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 40 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 41 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 42 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 43 | + </rowConstraints> |
| 44 | + <children> |
| 45 | + <Label text="Name:" textAlignment="RIGHT" /> |
| 46 | + <Label text="Phone:" GridPane.rowIndex="1" /> |
| 47 | + <Label text="Comment:" GridPane.rowIndex="8" /> |
| 48 | + <Label text="Address:" GridPane.rowIndex="2" /> |
| 49 | + <Label fx:id="cpflbl" text="CPF:" GridPane.rowIndex="3" /> |
| 50 | + <Label text="Contract:" GridPane.rowIndex="4" /> |
| 51 | + <TextField fx:id="name" GridPane.columnIndex="1" /> |
| 52 | + <MaskField fx:id="phone" mask="(DDD)DDDD-DDDD" GridPane.columnIndex="1" GridPane.rowIndex="1" /> |
| 53 | + <TextField fx:id="address" GridPane.columnIndex="1" GridPane.rowIndex="2" /> |
| 54 | + <MaskField fx:id="cpf" mask="DDD.DDD.DDD-DD" GridPane.columnIndex="1" GridPane.rowIndex="3" /> |
| 55 | + <TextField fx:id="comment" GridPane.columnIndex="1" GridPane.rowIndex="8" /> |
| 56 | + <ComboBox fx:id="contract" prefHeight="26.0" prefWidth="170.0" GridPane.columnIndex="1" GridPane.rowIndex="4" /> |
| 57 | + <Label text="Date:" GridPane.rowIndex="5" /> |
| 58 | + <HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" spacing="10.0" GridPane.columnIndex="1" GridPane.rowIndex="5"> |
| 59 | + <children> |
| 60 | + <MaskField fx:id="date" mask="DD/DD/DDDD" prefHeight="26.0" prefWidth="95.0" /> |
| 61 | + <CheckBox fx:id="today" mnemonicParsing="false" onAction="#doToday" text="Today" /> |
| 62 | + </children> |
| 63 | + </HBox> |
| 64 | + <Label text="University:" GridPane.rowIndex="6" /> |
| 65 | + <Label text="Course:" GridPane.rowIndex="7" /> |
| 66 | + <ComboBox fx:id="university" prefHeight="26.0" prefWidth="170.0" GridPane.columnIndex="1" GridPane.rowIndex="6" /> |
| 67 | + <ComboBox fx:id="course" prefHeight="26.0" prefWidth="170.0" GridPane.columnIndex="1" GridPane.rowIndex="7" /> |
| 68 | + </children> |
| 69 | + <VBox.margin> |
| 70 | + <Insets bottom="10.0" top="10.0" /> |
| 71 | + </VBox.margin> |
| 72 | + </GridPane> |
| 73 | + <ButtonBar buttonMinWidth="50.0" prefHeight="40.0" prefWidth="275.0"> |
| 74 | + <buttons> |
| 75 | + <Button fx:id="clear" mnemonicParsing="false" onAction="#doClear" text="Clear"> |
| 76 | + <font> |
| 77 | + <Font name="Calibri" size="14.0" /> |
| 78 | + </font> |
| 79 | + </Button> |
| 80 | + <Button fx:id="cancel" mnemonicParsing="false" onAction="#doCancel" text="Cancel"> |
| 81 | + <font> |
| 82 | + <Font name="Calibri" size="14.0" /> |
| 83 | + </font> |
| 84 | + </Button> |
| 85 | + <Button fx:id="save" mnemonicParsing="false" onAction="#doSave" style="-fx-background-color: #009EE0;" text="Save"> |
| 86 | + <font> |
| 87 | + <Font name="Calibri" size="14.0" /> |
| 88 | + </font> |
| 89 | + </Button> |
| 90 | + </buttons> |
| 91 | + </ButtonBar> |
| 92 | + </children> |
| 93 | + </VBox> |
| 94 | + </children> |
| 95 | + <padding> |
| 96 | + <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> |
| 97 | + </padding> |
| 98 | +</AnchorPane> |
0 commit comments