<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<GridPane fx:controller="xyz.wbsite.dbtool.javafx.ctrl.DetailProjectController" maxHeight="-Infinity"
          maxWidth="-Infinity"
          minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/8.0.65"
          xmlns:fx="http://javafx.com/fxml/1">
    <columnConstraints>
        <ColumnConstraints hgrow="SOMETIMES" prefWidth="10.0"/>
        <ColumnConstraints hgrow="SOMETIMES" prefWidth="60.0"/>
        <ColumnConstraints hgrow="SOMETIMES" prefWidth="160.0"/>
        <ColumnConstraints hgrow="SOMETIMES" prefWidth="10.0"/>
        <ColumnConstraints hgrow="SOMETIMES" prefWidth="60.0"/>
        <ColumnConstraints hgrow="SOMETIMES" prefWidth="160.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>
    <children>
        <!-- ROW -->
        <Label GridPane.rowIndex="0" GridPane.columnIndex="0" text="*" alignment="CENTER" textAlignment="CENTER"
               textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
        <Label GridPane.rowIndex="0" GridPane.columnIndex="1" text="项目名称" GridPane.halignment="CENTER"
               GridPane.valignment="CENTER"/>
        <TextField GridPane.rowIndex="0" GridPane.columnIndex="2" fx:id="name"/>

        <Label GridPane.rowIndex="0" GridPane.columnIndex="3" text="*" alignment="CENTER" textAlignment="CENTER"
               textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
        <Label GridPane.rowIndex="0" GridPane.columnIndex="4" text="项目作者" GridPane.halignment="CENTER"
               GridPane.valignment="CENTER"/>
        <TextField GridPane.rowIndex="0" GridPane.columnIndex="5" fx:id="author"/>
        <!-- ROW -->

        <!-- ROW -->
        <Label GridPane.rowIndex="1" GridPane.columnIndex="0" text="*" alignment="CENTER" textAlignment="CENTER"
               textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
        <Label GridPane.rowIndex="1" GridPane.columnIndex="1" text="项目域名" GridPane.halignment="CENTER"
               GridPane.valignment="CENTER"/>
        <TextField GridPane.rowIndex="1" GridPane.columnIndex="2" fx:id="domain"/>

        <!-- ROW -->
        <Label GridPane.rowIndex="2" GridPane.columnIndex="0" text="*" alignment="CENTER" textAlignment="CENTER"
               textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
        <Label GridPane.rowIndex="2" GridPane.columnIndex="1" text="数据库类" GridPane.halignment="CENTER"
               GridPane.valignment="CENTER"/>

        <HBox GridPane.rowIndex="2" GridPane.columnIndex="2" GridPane.columnSpan="4" alignment="CENTER_LEFT"
              GridPane.halignment="CENTER"
              GridPane.valignment="CENTER">
            <children>
                <RadioButton mnemonicParsing="false" text="空白框架" selected="true">
                    <toggleGroup>
                        <ToggleGroup fx:id="frame"/>
                    </toggleGroup>
                </RadioButton>
                <RadioButton mnemonicParsing="false" text="服务框架" toggleGroup="$frame"/>
                <RadioButton mnemonicParsing="false" text="接口框架" toggleGroup="$frame"/>
                <RadioButton mnemonicParsing="false" text="网页框架" toggleGroup="$frame"/>
            </children>
        </HBox>

        <!-- ROW -->
        <Label GridPane.rowIndex="3" GridPane.columnIndex="0" text="*" alignment="CENTER" textAlignment="CENTER"
               textFill="RED" GridPane.halignment="CENTER" GridPane.valignment="CENTER"/>
        <Label GridPane.rowIndex="3" GridPane.columnIndex="1" text="数据库类" GridPane.halignment="CENTER"
               GridPane.valignment="CENTER"/>

        <HBox GridPane.rowIndex="3" GridPane.columnIndex="2" GridPane.columnSpan="4" alignment="CENTER_LEFT"
              GridPane.halignment="CENTER"
              GridPane.valignment="CENTER">
            <children>
                <RadioButton mnemonicParsing="false" text="MySQL" selected="true">
                    <toggleGroup>
                        <ToggleGroup fx:id="database"/>
                    </toggleGroup>
                </RadioButton>
                <RadioButton mnemonicParsing="false" text="Oracle" toggleGroup="$database"/>
                <RadioButton mnemonicParsing="false" text="SQLite" toggleGroup="$database"/>
            </children>
        </HBox>

        <!-- ROW -->
        <Label GridPane.rowIndex="4" GridPane.columnIndex="1" text="其他配置" GridPane.halignment="CENTER"
               GridPane.valignment="CENTER"/>

        <HBox GridPane.rowIndex="4" GridPane.columnIndex="2" GridPane.columnSpan="4" alignment="CENTER_LEFT"
              GridPane.halignment="CENTER"
              GridPane.valignment="CENTER">
            <children>
                <CheckBox fx:id="needMordDB" selected="false" text="多数据库"/>
                <CheckBox fx:id="needCloud" selected="false" text="添加Cloud"/>
                <CheckBox fx:id="needAsync" selected="false" text="异步编程"/>
                <CheckBox fx:id="needMail" selected="false" text="发送邮件"/>
            </children>
        </HBox>
    </children>
</GridPane>
