Testing.fxml 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.scene.control.Button?>
  3. <?import javafx.scene.control.ComboBox?>
  4. <?import javafx.scene.control.DatePicker?>
  5. <?import javafx.scene.control.SplitPane?>
  6. <?import javafx.scene.control.TextField?>
  7. <?import javafx.scene.layout.AnchorPane?>
  8. <?import javafx.scene.layout.FlowPane?>
  9. <?import javafx.scene.layout.Pane?>
  10. <?import javafx.scene.layout.VBox?>
  11. <AnchorPane fx:id="basePane" prefHeight="414.0" prefWidth="736.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controllers.TestsController">
  12. <children>
  13. <VBox prefHeight="414.0" prefWidth="736.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  14. <children>
  15. <AnchorPane>
  16. <children>
  17. <FlowPane maxHeight="30.0" minHeight="30.0" prefHeight="30.0" prefWidth="598.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  18. <children>
  19. <DatePicker fx:id="date" prefHeight="30.0" prefWidth="209.0" />
  20. <Button fx:id="getResults" mnemonicParsing="false" onAction="#getResults" prefHeight="30.0" prefWidth="96.0" text="GetResults" />
  21. <ComboBox id="CountryComboBox" fx:id="countrySelector" disable="true" onAction="#CountrySelected" prefHeight="25.0" prefWidth="200.0" promptText="Country" />
  22. <ComboBox id="LeagueComboBox" fx:id="leagueSelector" disable="true" onAction="#LeagueSelected" prefHeight="25.0" prefWidth="200.0" promptText="League" />
  23. <Button fx:id="getLeagueInfoButton" mnemonicParsing="false" disable="true" onAction="#getLeagueInfo" prefHeight="30.0" prefWidth="96.0" text="Get league info" />
  24. <Button fx:id="getMoreLeagueInfoButton" mnemonicParsing="false" disable="true" onAction="#getMoreLeagueInfo" prefHeight="30.0" prefWidth="96.0" text="Get more league info" />
  25. </children>
  26. </FlowPane>
  27. </children>
  28. </AnchorPane>
  29. <AnchorPane fx:id="testSettingsPanel" prefHeight="386.0" prefWidth="736.0">
  30. <children>
  31. <SplitPane dividerPositions="0.5" prefHeight="351.0" prefWidth="736.0" AnchorPane.bottomAnchor="34.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  32. <items>
  33. <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
  34. <children>
  35. <VBox prefHeight="383.0" prefWidth="216.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  36. <children>
  37. <TextField editable="false" text="Starting cash" />
  38. <TextField editable="false" text="Betting level" />
  39. <TextField editable="false" text="Games lookback" />
  40. <TextField editable="false" text="Bet margin" />
  41. </children>
  42. </VBox>
  43. </children>
  44. </AnchorPane>
  45. <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
  46. <children>
  47. <VBox prefHeight="383.0" prefWidth="512.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  48. <children>
  49. <TextField fx:id="startingBank" promptText="1000" />
  50. <TextField fx:id="bettingLevel" promptText="1%" />
  51. <TextField fx:id="lookBack" promptText="10" />
  52. <TextField fx:id="betMargin" promptText="5%" />
  53. <Button fx:id="calcBestValues" onAction="#calcBestResultsAction" text="Calc Best values"/>
  54. <Button fx:id="topLeaguesTest" onAction="#topLeaguesTestAction" text="Top Leagues Test"/>
  55. </children>
  56. </VBox>
  57. </children>
  58. </AnchorPane>
  59. </items>
  60. </SplitPane>
  61. <Pane layoutX="-1.0" layoutY="390.0" prefHeight="30.0" prefWidth="736.0">
  62. <children>
  63. <Button onAction="#runTestAction" layoutX="338.0" layoutY="2.0" mnemonicParsing="false" text="Run test" />
  64. </children>
  65. </Pane>
  66. </children>
  67. </AnchorPane>
  68. <AnchorPane fx:id="testResultsPanel" prefHeight="386.0" prefWidth="736.0">
  69. </AnchorPane>
  70. </children>
  71. </VBox>
  72. </children>
  73. </AnchorPane>