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

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.secure_mailer.backend.SecretCodeController">
   <children>
      <AnchorPane layoutX="173.0" layoutY="40.0" prefHeight="138.0" prefWidth="194.0" />
      <Label layoutX="290.0" layoutY="262.0" prefHeight="26.0" prefWidth="84.0" text="Email Id :" textAlignment="RIGHT" textOverrun="WORD_ELLIPSIS" wrapText="true">
         <font>
            <Font size="18.0" />
         </font>
      </Label>
      <Label layoutX="290.0" layoutY="310.0" prefHeight="26.0" prefWidth="84.0" text="Secret Key :" textAlignment="RIGHT" textOverrun="WORD_ELLIPSIS" wrapText="true">
         <font>
            <Font size="15.0" />
         </font>
      </Label>
      <Button layoutX="290.0" layoutY="346.0" mnemonicParsing="false" onAction="#handleAdd" prefHeight="27.0" prefWidth="78.0" text="Add Key" />
      <Button layoutX="397.0" layoutY="347.0" mnemonicParsing="false" onAction="#handleUpdate" text="Update Key" />
      <Button layoutX="510.0" layoutY="347.0" mnemonicParsing="false" onAction="#handleDelete" text="Delete Key" />
      <Button layoutX="431.0" layoutY="67.0" mnemonicParsing="false" onAction="#handleViewAll" text="View All Key" />
       <TableView fx:id="secretCodesTable" layoutY="2.0" prefHeight="181.0" prefWidth="401.0">
	        <columns>
	            <TableColumn fx:id="emailColumn" prefWidth="200" text="Email" />
	            <TableColumn fx:id="secretCodeColumn" prefWidth="200" text="Secret Code" />
	        </columns>
    	</TableView>
      <TextField fx:id="emailField" layoutX="397.0" layoutY="263.0" promptText="Email Id" />
      <TextField fx:id="secretCodeField" layoutX="397.0" layoutY="311.0" promptText="Secret Key" />
   </children>
</AnchorPane>
