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

<?import javafx.collections.FXCollections?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.effect.ColorAdjust?>
<?import javafx.scene.effect.GaussianBlur?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.*?>
<?import java.lang.String?>
<StackPane prefHeight="500.0" prefWidth="400.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2"
           fx:controller="sfxml.AdoptionFormPresenter">
    <children>
        <ImageView>
            <effect>
                <ColorAdjust brightness="0.1">
                    <input>
                        <GaussianBlur/>
                    </input>
                </ColorAdjust>
            </effect>
            <image>
                <Image url="@cat.jpg" preserveRatio="true" requestedHeight="800.0" requestedWidth="800.0"/>
            </image>
        </ImageView>
        <GridPane fx:id="grid" hgap="10.0" style="-fx-padding: 20" vgap="10.0">
            <children>
                <Label style="-fx-font-size: 24" text="Cat Adoption Form" GridPane.columnSpan="2147483647"
                       GridPane.halignment="CENTER"/>
                <Label text="Size: " GridPane.rowIndex="2"/>
                <TextField fx:id="sizeTextField" promptText="approximate size in pounds" GridPane.columnIndex="1"
                           GridPane.rowIndex="2"/>
                <Label text="Breed: " GridPane.rowIndex="3"/>
                <TextField fx:id="breedTextField" promptText="pet breed" GridPane.columnIndex="1"
                           GridPane.rowIndex="3"/>
                <Label text="Sex: " GridPane.rowIndex="4"/>
                <ChoiceBox fx:id="sexChoiceBox" GridPane.columnIndex="1" GridPane.rowIndex="4">
                    <items>
                        <FXCollections fx:factory="observableArrayList">
                            <String fx:value="Male"/>
                            <String fx:value="Female"/>
                            <String fx:value="Either"/>
                        </FXCollections>
                    </items>
                </ChoiceBox>
                <Label text="Additional Info: " textAlignment="RIGHT" wrapText="true" GridPane.rowIndex="5"
                       GridPane.valignment="BASELINE"/>
                <TextArea fx:id="additionalInfoTextArea" prefRowCount="8" wrapText="true" GridPane.columnIndex="1"
                          GridPane.rowIndex="5" GridPane.vgrow="ALWAYS"/>
                <HBox id="HBox" alignment="CENTER_RIGHT" spacing="10.0" GridPane.columnIndex="1" GridPane.rowIndex="6">
                    <children>
                        <Button mnemonicParsing="false" onAction="#handleClear" text="Clear"/>
                        <Button onAction="#handleSubmit" text="Submit"/>
                    </children>
                    <padding>
                        <Insets left="10.0" right="10.0"/>
                    </padding>
                </HBox>
            </children>
            <columnConstraints>
                <ColumnConstraints halignment="RIGHT" minWidth="60.0"/>
                <ColumnConstraints hgrow="ALWAYS" prefWidth="300.0"/>
            </columnConstraints>
        </GridPane>
    </children>
</StackPane>
