Create date type layout fxml

This commit is contained in:
akasakaisami 2018-05-29 16:04:50 +08:00
parent adee2f5725
commit 6ac0bec9b8
1 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import java.lang.*?>
<?import javafx.scene.layout.*?>
<?import javafx.collections.FXCollections?>
<fx:root type="VBox" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="359.0" prefWidth="390.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="291.0" minWidth="10.0" prefWidth="77.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="488.0" minWidth="10.0" prefWidth="313.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label text="开始时间" GridPane.halignment="CENTER" />
<Label text="结束时间" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
<Label text="地点" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
<Label text="参加人员" GridPane.halignment="CENTER" GridPane.rowIndex="3" />
<Label text="内容" GridPane.halignment="CENTER" GridPane.rowIndex="4" />
<Label text="紧急" GridPane.halignment="CENTER" GridPane.rowIndex="5" />
<Label text="重要" GridPane.halignment="CENTER" GridPane.rowIndex="6" />
<Label text="提醒方式" GridPane.halignment="CENTER" GridPane.rowIndex="7" />
<Label text="提醒开始时间" GridPane.halignment="CENTER" GridPane.rowIndex="8" />
<Label text="提醒间隔" GridPane.halignment="CENTER" GridPane.rowIndex="9" />
<TextField fx:id="bgnTimeText" promptText="yyyy-mm-dd/hh:mm" GridPane.columnIndex="1" />
<TextField fx:id="endTimeText" promptText="yyyy-mm-dd/hh:mm" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField fx:id="locationText" promptText="not empty" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField fx:id="personnelText" promptText="aa;bb;cc" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<TextField fx:id="titleText" promptText="not empty" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<TextField fx:id="alarmStartText" promptText="yyyy-mm-dd/hh:mm" GridPane.columnIndex="1" GridPane.rowIndex="8" />
<TextField fx:id="alarmIntervalText" promptText="y;m;d;h;m" GridPane.columnIndex="1" GridPane.rowIndex="9" />
<ChoiceBox fx:id="priorityBox" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="5">
<value>
<String fx:value="urgent" />
</value>
<items>
<FXCollections fx:factory="observableArrayList">
<String fx:value="urgent" />
<String fx:value="normal" />
</FXCollections>
</items>
</ChoiceBox>
<ChoiceBox fx:id="importanceBox" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="6">
<value>
<String fx:value="important" />
</value>
<items>
<FXCollections fx:factory="observableArrayList">
<String fx:value="important" />
<String fx:value="normal" />
</FXCollections>
</items>
</ChoiceBox>
<ChoiceBox fx:id="alarmMethodBox" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="7">
<value>
<String fx:value="none" />
</value>
<items>
<FXCollections fx:factory="observableArrayList">
<String fx:value="none" />
<String fx:value="area" />
<String fx:value="dialog" />
</FXCollections>
</items>
</ChoiceBox>
</children>
</GridPane>
</fx:root>