|
4 | 4 |
|
5 | 5 | <?import edu.wpi.grip.ui.util.DPIUtility?> |
6 | 6 | <?import javafx.beans.property.SimpleBooleanProperty?> |
| 7 | +<?import javafx.beans.property.SimpleStringProperty?> |
7 | 8 | <?import javafx.scene.control.*?> |
8 | 9 | <?import javafx.scene.image.Image?> |
9 | 10 | <?import javafx.scene.image.ImageView?> |
10 | 11 | <?import javafx.scene.layout.*?> |
11 | 12 | <VBox styleClass="deploy-pane" maxWidth="Infinity" xmlns:fx="http://javafx.com/fxml/1" |
12 | 13 | onKeyPressed="if (event.code == javafx.scene.input.KeyCode.ENTER) { controller.onDeploy() }" |
13 | | - xmlns="http://javafx.com/javafx/null" fx:controller="edu.wpi.grip.ui.DeployController"> |
| 14 | + xmlns="http://javafx.com/javafx/null" fx:controller="edu.wpi.grip.ui.DeployController" fillWidth="true"> |
14 | 15 | <fx:define> |
15 | 16 | <SimpleBooleanProperty fx:id="deploying"/> |
| 17 | + <SimpleStringProperty fx:id="command"/> |
16 | 18 | </fx:define> |
17 | 19 |
|
18 | | - <GridPane maxHeight="Infinity"> |
19 | | - <columnConstraints> |
20 | | - <ColumnConstraints hgrow="NEVER" halignment="RIGHT"/> |
21 | | - <ColumnConstraints hgrow="ALWAYS"/> |
22 | | - <ColumnConstraints hgrow="NEVER"> |
23 | | - <prefWidth> |
24 | | - <DPIUtility fx:constant="FONT_SIZE"/> |
25 | | - </prefWidth> |
26 | | - </ColumnConstraints> |
27 | | - <ColumnConstraints hgrow="NEVER" halignment="RIGHT"/> |
28 | | - <ColumnConstraints hgrow="ALWAYS"/> |
29 | | - </columnConstraints> |
| 20 | + <HBox maxWidth="Infinity"> |
| 21 | + <GridPane maxHeight="Infinity" HBox.hgrow="ALWAYS"> |
| 22 | + <columnConstraints> |
| 23 | + <ColumnConstraints hgrow="NEVER" halignment="RIGHT"/> |
| 24 | + <ColumnConstraints hgrow="ALWAYS"/> |
| 25 | + </columnConstraints> |
30 | 26 |
|
31 | | - <Label disable="${deployButton.disabled}" text="Address" GridPane.columnIndex="0" GridPane.rowIndex="0"/> |
32 | | - <TextField disable="${deployButton.disabled}" fx:id="address" promptText="Address" GridPane.columnIndex="1" |
33 | | - GridPane.rowIndex="0"/> |
| 27 | + <Label disable="${deployButton.disabled}" text="Address" GridPane.columnIndex="0" GridPane.rowIndex="0"/> |
| 28 | + <TextField disable="${deployButton.disabled}" fx:id="address" promptText="Address" GridPane.columnIndex="1" |
| 29 | + GridPane.rowIndex="0"/> |
34 | 30 |
|
35 | | - <Label disable="${deployButton.disabled}" text="User" GridPane.columnIndex="0" GridPane.rowIndex="1"/> |
36 | | - <TextField disable="${deployButton.disabled}" fx:id="user" promptText="Username" GridPane.columnIndex="1" |
37 | | - GridPane.rowIndex="1"/> |
| 31 | + <Label disable="${deployButton.disabled}" text="User" GridPane.columnIndex="0" GridPane.rowIndex="1"/> |
| 32 | + <TextField disable="${deployButton.disabled}" fx:id="user" promptText="Username" GridPane.columnIndex="1" |
| 33 | + GridPane.rowIndex="1"/> |
38 | 34 |
|
39 | | - <Label disable="${deployButton.disabled}" text="Password" GridPane.columnIndex="0" GridPane.rowIndex="2"/> |
40 | | - <PasswordField disable="${deployButton.disabled}" fx:id="password" promptText="Password" |
41 | | - GridPane.columnIndex="1" GridPane.rowIndex="2"/> |
| 35 | + <Label disable="${deployButton.disabled}" text="Password" GridPane.columnIndex="0" GridPane.rowIndex="2"/> |
| 36 | + <PasswordField disable="${deployButton.disabled}" fx:id="password" promptText="Password" |
| 37 | + GridPane.columnIndex="1" GridPane.rowIndex="2"/> |
42 | 38 |
|
43 | | - <Label disable="${deployButton.disabled}" text="Deploy Directory" GridPane.columnIndex="3" |
44 | | - GridPane.rowIndex="0"/> |
45 | | - <TextField disable="${deployButton.disabled}" fx:id="deployDir" promptText="Deploy Directory" |
46 | | - GridPane.columnIndex="4" GridPane.rowIndex="0"/> |
| 39 | + </GridPane> |
| 40 | + <Separator orientation="VERTICAL" HBox.hgrow="NEVER" visible="false"> |
| 41 | + <prefWidth> |
| 42 | + <DPIUtility fx:constant="SMALL_ICON_SIZE"/> |
| 43 | + </prefWidth> |
| 44 | + </Separator> |
| 45 | + <GridPane maxHeight="Infinity" HBox.hgrow="ALWAYS"> |
| 46 | + <columnConstraints> |
| 47 | + <ColumnConstraints hgrow="NEVER" halignment="RIGHT"/> |
| 48 | + <ColumnConstraints hgrow="ALWAYS"/> |
| 49 | + </columnConstraints> |
47 | 50 |
|
48 | | - <Label disable="${deployButton.disabled}" text="Java Home" GridPane.columnIndex="3" GridPane.rowIndex="1"/> |
49 | | - <TextField disable="${deployButton.disabled}" fx:id="javaHome" promptText="Java Home" |
50 | | - GridPane.columnIndex="4" GridPane.rowIndex="1"/> |
| 51 | + <Label disable="${deployButton.disabled}" text="Deploy Directory" GridPane.columnIndex="0" |
| 52 | + GridPane.rowIndex="0"/> |
| 53 | + <TextField disable="${deployButton.disabled}" fx:id="deployDir" promptText="Deploy Directory" |
| 54 | + GridPane.columnIndex="1" GridPane.rowIndex="0"/> |
51 | 55 |
|
52 | | - <Label disable="${deployButton.disabled}" text="JVM Arguments" GridPane.columnIndex="3" GridPane.rowIndex="2"/> |
53 | | - <TextField disable="${deployButton.disabled}" fx:id="jvmArgs" promptText="JVM Arguments" |
54 | | - GridPane.columnIndex="4" GridPane.rowIndex="2"/> |
| 56 | + <Label disable="${deployButton.disabled}" text="Java Home" GridPane.columnIndex="0" GridPane.rowIndex="1"/> |
| 57 | + <TextField disable="${deployButton.disabled}" fx:id="javaHome" promptText="Java Home" |
| 58 | + GridPane.columnIndex="1" GridPane.rowIndex="1"/> |
55 | 59 |
|
56 | | - <Label disable="${deployButton.disabled}" text="Command" GridPane.columnIndex="0" GridPane.rowIndex="3"/> |
57 | | - <Label fx:id="command" disable="${deployButton.disabled}" GridPane.columnIndex="1" GridPane.columnSpan="4" |
58 | | - GridPane.rowIndex="3" style="-fx-font-family: monospace"/> |
59 | | - </GridPane> |
| 60 | + <Label disable="${deployButton.disabled}" text="JVM Arguments" GridPane.columnIndex="0" |
| 61 | + GridPane.rowIndex="2"/> |
| 62 | + <TextField disable="${deployButton.disabled}" fx:id="jvmArgs" promptText="JVM Arguments" |
| 63 | + GridPane.columnIndex="1" GridPane.rowIndex="2"/> |
| 64 | + </GridPane> |
| 65 | + </HBox> |
60 | 66 |
|
| 67 | + <Separator orientation="HORIZONTAL" VBox.vgrow="NEVER"/> |
61 | 68 |
|
62 | 69 | <ButtonBar> |
63 | 70 | <buttons> |
|
89 | 96 | <Label fx:id="status"/> |
90 | 97 | </StackPane> |
91 | 98 |
|
92 | | - <TextArea fx:id="console" editable="false" styleClass="console" prefRowCount="24" prefColumnCount="100"/> |
| 99 | + <TextArea fx:id="console" editable="false" styleClass="console" prefRowCount="24" prefColumnCount="100" |
| 100 | + VBox.vgrow="ALWAYS"/> |
93 | 101 | </VBox> |
0 commit comments