AddMovieWindow.fxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.scene.control.Label?>
  3. <?import javafx.scene.control.ScrollPane?>
  4. <?import javafx.scene.control.TextArea?>
  5. <?import javafx.scene.control.TextField?>
  6. <?import javafx.scene.layout.AnchorPane?>
  7. <?import javafx.scene.layout.FlowPane?>
  8. <?import javafx.scene.layout.Pane?>
  9. <?import javafx.scene.layout.VBox?>
  10. <?import javafx.scene.text.Font?>
  11. <VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="470.0" prefWidth="604.0" style="-fx-background-color: #212121;" stylesheets="@AddMovieWindowStyle.css" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.AddMovieController">
  12. <children>
  13. <AnchorPane VBox.vgrow="SOMETIMES">
  14. <children>
  15. <Label layoutX="24.0" layoutY="24.0" text="Add movie" textFill="#9f9f9f" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0">
  16. <font>
  17. <Font size="24.0" />
  18. </font>
  19. </Label>
  20. <Label layoutX="24.0" layoutY="65.0" text="Title" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="55.0">
  21. <font>
  22. <Font size="14.0" />
  23. </font>
  24. </Label>
  25. <Pane layoutX="24.0" layoutY="74.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="75.0" />
  26. <Pane layoutX="169.0" layoutY="96.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="75.0" />
  27. <TextField id="actorName" fx:id="titleTextBox" layoutX="175.0" layoutY="47.0" maxWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="50.0">
  28. <font>
  29. <Font size="14.0" />
  30. </font>
  31. </TextField>
  32. <Label layoutX="23.0" layoutY="82.0" text="Cover Link" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="95.0">
  33. <font>
  34. <Font size="14.0" />
  35. </font>
  36. </Label>
  37. <Pane layoutX="29.0" layoutY="140.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="115.0" />
  38. <Pane layoutX="174.0" layoutY="162.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="115.0" />
  39. <TextField id="actorName" fx:id="urlTextBox" layoutX="180.0" layoutY="113.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="90.0">
  40. <font>
  41. <Font size="14.0" />
  42. </font>
  43. </TextField>
  44. <Label layoutX="16.0" layoutY="176.0" text="Genre" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="135.0">
  45. <font>
  46. <Font size="14.0" />
  47. </font>
  48. </Label>
  49. <Pane layoutX="22.0" layoutY="234.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="155.0" />
  50. <Pane layoutX="167.0" layoutY="256.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="155.0" />
  51. <TextField id="actorName" fx:id="genreTextBox" layoutX="221.0" layoutY="134.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="130.0">
  52. <font>
  53. <Font size="14.0" />
  54. </font>
  55. </TextField>
  56. <Label layoutX="26.0" layoutY="186.0" text="Year" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="175.0">
  57. <font>
  58. <Font size="14.0" />
  59. </font>
  60. </Label>
  61. <Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="195.0" />
  62. <Pane layoutX="177.0" layoutY="266.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="195.0" />
  63. <TextField id="actorName" fx:id="yearTextBox" layoutX="183.0" layoutY="217.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="170.0">
  64. <font>
  65. <Font size="14.0" />
  66. </font>
  67. </TextField>
  68. <Label layoutX="26.0" layoutY="186.0" text="Duration" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="215.0">
  69. <font>
  70. <Font size="14.0" />
  71. </font>
  72. </Label>
  73. <Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="235.0" />
  74. <Pane layoutX="177.0" layoutY="266.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="235.0" />
  75. <TextField id="actorName" fx:id="timeTextBox" layoutX="183.0" layoutY="217.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="210.0">
  76. <font>
  77. <Font size="14.0" />
  78. </font>
  79. </TextField>
  80. <Label layoutX="36.0" layoutY="196.0" text="Studio" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="255.0">
  81. <font>
  82. <Font size="14.0" />
  83. </font>
  84. </Label>
  85. <Pane layoutX="42.0" layoutY="254.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="275.0" />
  86. <Pane layoutX="187.0" layoutY="276.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="275.0" />
  87. <TextField id="actorName" fx:id="studioTextBox" layoutX="193.0" layoutY="227.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="250.0">
  88. <font>
  89. <Font size="14.0" />
  90. </font>
  91. </TextField>
  92. <Label layoutX="6.0" layoutY="291.0" text="Director" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="295.0">
  93. <font>
  94. <Font size="14.0" />
  95. </font>
  96. </Label>
  97. <Pane layoutX="12.0" layoutY="349.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="315.0" />
  98. <Pane layoutX="157.0" layoutY="371.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="315.0" />
  99. <TextField id="actorName" fx:id="directorTextBox" layoutX="163.0" layoutY="322.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="290.0">
  100. <font>
  101. <Font size="14.0" />
  102. </font>
  103. </TextField>
  104. <Label layoutX="28.0" layoutY="333.0" text="Actor" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="335.0">
  105. <font>
  106. <Font size="14.0" />
  107. </font>
  108. </Label>
  109. <Pane layoutX="124.0" layoutY="370.0" minWidth="304.0" prefHeight="3.0" prefWidth="304.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="126.0" AnchorPane.topAnchor="355.0" />
  110. <Pane layoutX="22.0" layoutY="359.0" maxHeight="1.0" maxWidth="150.0" minHeight="1.0" minWidth="150.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="355.0" />
  111. <Label layoutX="422.0" layoutY="378.0" text="Role" textFill="#9f9f9f" AnchorPane.rightAnchor="68.0" AnchorPane.topAnchor="335.0">
  112. <font>
  113. <Font size="14.0" />
  114. </font>
  115. </Label>
  116. <Pane layoutX="392.0" layoutY="369.0" maxHeight="1.0" maxWidth="64.0" minHeight="1.0" minWidth="64.0" prefHeight="1.0" prefWidth="64.0" style="-fx-background-color: #9f9f9f;" AnchorPane.rightAnchor="62.0" AnchorPane.topAnchor="355.0" />
  117. <Label alignment="CENTER" layoutX="555.0" layoutY="323.0" onMouseClicked="#addActor" prefHeight="17.0" prefWidth="24.0" text="+" textFill="#9f9f9f" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="325.0">
  118. <font>
  119. <Font name="System Bold" size="24.0" />
  120. </font>
  121. </Label>
  122. <Label alignment="CENTER" layoutX="495.0" layoutY="323.0" prefHeight="17.0" prefWidth="24.0" text="-" textFill="#9f9f9f" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="325.0">
  123. <font>
  124. <Font name="System Bold" size="24.0" />
  125. </font>
  126. </Label>
  127. <ScrollPane fitToHeight="true" fitToWidth="true" layoutX="174.0" layoutY="362.0" prefHeight="70.0" prefWidth="416.0" vbarPolicy="ALWAYS" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="362.0">
  128. <content>
  129. <FlowPane fx:id="actorsGrid" alignment="TOP_CENTER" columnHalignment="CENTER" hgap="9999" orientation="HORIZONTAL" prefHeight="68.0" prefWidth="414.0" style="-fx-background-color: #212121;" />
  130. </content>
  131. </ScrollPane>
  132. <Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
  133. <font>
  134. <Font name="Arimo" size="12.0" />
  135. </font>
  136. </Label>
  137. <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
  138. <font>
  139. <Font name="Arimo" size="12.0" />
  140. </font>
  141. </Label>
  142. </children>
  143. </AnchorPane>
  144. <AnchorPane VBox.vgrow="SOMETIMES">
  145. <children>
  146. <Label text="User Rating" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="38.0">
  147. <font>
  148. <Font size="14.0" />
  149. </font>
  150. </Label>
  151. <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="58.0" />
  152. <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="58.0" />
  153. <TextField id="actorName" fx:id="rateTextBox" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="33.0">
  154. <font>
  155. <Font size="14.0" />
  156. </font>
  157. </TextField>
  158. <Label text="Description" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="78.0">
  159. <font>
  160. <Font size="14.0" />
  161. </font>
  162. </Label>
  163. <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="98.0" />
  164. <TextArea fx:id="descriptionTextBox" minHeight="30.0" prefHeight="70.0" prefWidth="200.0" style="-fx-text-fill: #9f9f9f;" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="71.0">
  165. <font>
  166. <Font size="14.0" />
  167. </font>
  168. </TextArea>
  169. <Pane prefHeight="43.0" prefWidth="1.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.topAnchor="98.0" />
  170. <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" />
  171. </children>
  172. </AnchorPane>
  173. <AnchorPane prefWidth="200.0" VBox.vgrow="NEVER">
  174. <children>
  175. <Label onMouseClicked="#addMovie" text="Add" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0">
  176. <font>
  177. <Font name="System Bold" size="16.0" />
  178. </font>
  179. </Label>
  180. </children>
  181. </AnchorPane>
  182. </children>
  183. </VBox>