EditMovieWindow.fxml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.scene.Cursor?>
  3. <?import javafx.scene.control.ComboBox?>
  4. <?import javafx.scene.control.Label?>
  5. <?import javafx.scene.control.ScrollPane?>
  6. <?import javafx.scene.control.TextArea?>
  7. <?import javafx.scene.control.TextField?>
  8. <?import javafx.scene.layout.AnchorPane?>
  9. <?import javafx.scene.layout.BorderPane?>
  10. <?import javafx.scene.layout.Pane?>
  11. <?import javafx.scene.layout.VBox?>
  12. <?import javafx.scene.text.Font?>
  13. <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="0.0" prefHeight="553.0" prefWidth="616.0" stylesheets="@AddMovieWindowStyle.css" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.EditMovieController">
  14. <right>
  15. <Pane fx:id="borderRight" maxWidth="5.0" prefHeight="520.0" prefWidth="230.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
  16. <cursor>
  17. <Cursor fx:constant="E_RESIZE" />
  18. </cursor></Pane>
  19. </right>
  20. <bottom>
  21. <AnchorPane>
  22. <Pane fx:id="cornerBottomLeft" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0">
  23. <cursor>
  24. <Cursor fx:constant="NE_RESIZE" />
  25. </cursor>
  26. </Pane>
  27. <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="745.0" style="-fx-background-color: #121212;" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" BorderPane.alignment="CENTER">
  28. <cursor>
  29. <Cursor fx:constant="S_RESIZE" />
  30. </cursor></Pane>
  31. <Pane fx:id="cornerBottomRight" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  32. <cursor>
  33. <Cursor fx:constant="SE_RESIZE" />
  34. </cursor>
  35. </Pane>
  36. <cursor>
  37. <Cursor fx:constant="DEFAULT" />
  38. </cursor>
  39. </AnchorPane>
  40. </bottom>
  41. <center>
  42. <AnchorPane minHeight="0.0" minWidth="0.0" style="-fx-background-color: #212121;" BorderPane.alignment="CENTER">
  43. <AnchorPane prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
  44. <children>
  45. <Label onMouseClicked="#executeForm" text="Edit" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0">
  46. <font>
  47. <Font name="System Bold" size="16.0" />
  48. </font>
  49. </Label>
  50. </children>
  51. </AnchorPane>
  52. <ScrollPane fitToHeight="true" fitToWidth="true" minHeight="0.0" AnchorPane.BottomAnchor="0" AnchorPane.LeftAnchor="0" AnchorPane.RightAnchor="0" AnchorPane.TopAnchor="0" AnchorPane.bottomAnchor="53.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="42.0">
  53. <content>
  54. <VBox>
  55. <AnchorPane prefHeight="318.0" prefWidth="604.0" VBox.vgrow="NEVER">
  56. <Label layoutX="24.0" layoutY="65.0" text="Title" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="13.0">
  57. <font>
  58. <Font size="14.0" />
  59. </font>
  60. </Label>
  61. <Pane layoutX="24.0" layoutY="74.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="33.0" />
  62. <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="33.0" />
  63. <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="7.0">
  64. <font>
  65. <Font size="14.0" />
  66. </font>
  67. </TextField>
  68. <Label layoutX="23.0" layoutY="82.0" text="Cover Link" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="53.0">
  69. <font>
  70. <Font size="14.0" />
  71. </font>
  72. </Label>
  73. <Pane layoutX="29.0" layoutY="140.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="73.0" />
  74. <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="73.0" />
  75. <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="48.0">
  76. <font>
  77. <Font size="14.0" />
  78. </font>
  79. </TextField>
  80. <Label layoutX="16.0" layoutY="176.0" text="Genre" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="93.0">
  81. <font>
  82. <Font size="14.0" />
  83. </font>
  84. </Label>
  85. <Pane layoutX="22.0" layoutY="234.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="113.0" />
  86. <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="113.0" />
  87. <Label layoutX="26.0" layoutY="186.0" text="Year" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="133.0">
  88. <font>
  89. <Font size="14.0" />
  90. </font>
  91. </Label>
  92. <Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="153.0" />
  93. <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="153.0" />
  94. <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="128.0">
  95. <font>
  96. <Font size="14.0" />
  97. </font>
  98. </TextField>
  99. <Label layoutX="26.0" layoutY="186.0" text="Duration" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="173.0">
  100. <font>
  101. <Font size="14.0" />
  102. </font>
  103. </Label>
  104. <Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="193.0" />
  105. <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="193.0" />
  106. <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="168.0">
  107. <font>
  108. <Font size="14.0" />
  109. </font>
  110. </TextField>
  111. <Label layoutX="36.0" layoutY="196.0" text="Studio" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="213.0">
  112. <font>
  113. <Font size="14.0" />
  114. </font>
  115. </Label>
  116. <Pane layoutX="42.0" layoutY="254.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="233.0" />
  117. <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="233.0" />
  118. <Label layoutX="6.0" layoutY="291.0" text="Director" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="253.0">
  119. <font>
  120. <Font size="14.0" />
  121. </font>
  122. </Label>
  123. <Pane layoutX="12.0" layoutY="349.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="273.0" />
  124. <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="273.0" />
  125. <Label fx:id="actorLabel" layoutX="28.0" layoutY="333.0" text="Actor" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="293.0">
  126. <font>
  127. <Font size="14.0" />
  128. </font>
  129. </Label>
  130. <Pane layoutX="124.0" layoutY="370.0" minWidth="304.0" prefHeight="3.0" prefWidth="304.0" style="-fx-background-color: #9f9f9f;" visible="false" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="126.0" AnchorPane.topAnchor="313.0" />
  131. <Pane fx:id="actorUnderline" 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="313.0" />
  132. <Label fx:id="roleLabel" layoutX="422.0" layoutY="378.0" text="Role" textFill="#9f9f9f" AnchorPane.rightAnchor="68.0" AnchorPane.topAnchor="293.0">
  133. <font>
  134. <Font size="14.0" />
  135. </font>
  136. </Label>
  137. <Pane fx:id="roleUnderline" 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="313.0" />
  138. <Label fx:id="buttonRowAdd" 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="283.0">
  139. <font>
  140. <Font name="System Bold" size="24.0" />
  141. </font>
  142. </Label>
  143. <Label fx:id="buttonRowRem" alignment="CENTER" layoutX="495.0" layoutY="323.0" onMouseClicked="#removeActor" prefHeight="17.0" prefWidth="24.0" text="-" textFill="#9f9f9f" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="283.0">
  144. <font>
  145. <Font name="System Bold" size="24.0" />
  146. </font>
  147. </Label>
  148. <ScrollPane fx:id="actorsGrid" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" layoutX="174.0" layoutY="362.0" minHeight="4.0" prefHeight="70.0" prefWidth="416.0" vbarPolicy="NEVER" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="173.0" AnchorPane.rightAnchor="123.0" AnchorPane.topAnchor="287.0">
  149. <content>
  150. <VBox fx:id="actorsGridAncor" prefHeight="200.0" prefWidth="100.0" style="-fx-background-color: transparent;" />
  151. </content>
  152. </ScrollPane>
  153. <ComboBox fx:id="directorTextBox" editable="true" layoutX="174.0" layoutY="248.0" prefHeight="25.0" prefWidth="409.0" AnchorPane.leftAnchor="173.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="248.0" />
  154. <ComboBox fx:id="studioTextBox" editable="true" layoutX="174.0" layoutY="211.0" prefHeight="25.0" prefWidth="409.0" AnchorPane.leftAnchor="173.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="211.0" />
  155. <ComboBox fx:id="genreTextBox" editable="true" layoutX="173.0" layoutY="91.0" prefHeight="25.0" prefWidth="409.0" AnchorPane.leftAnchor="173.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="91.0" />
  156. </AnchorPane>
  157. <AnchorPane prefWidth="604.0" VBox.vgrow="SOMETIMES">
  158. <children>
  159. <Label text="User Rating" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="6.0">
  160. <font>
  161. <Font size="14.0" />
  162. </font>
  163. </Label>
  164. <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="26.0" />
  165. <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="26.0" />
  166. <TextField 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="1.0">
  167. <font>
  168. <Font size="14.0" />
  169. </font>
  170. </TextField>
  171. <Label text="Description" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="46.0">
  172. <font>
  173. <Font size="14.0" />
  174. </font>
  175. </Label>
  176. <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="66.0" />
  177. <TextArea fx:id="descriptionTextBox" minHeight="70.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="39.0">
  178. <font>
  179. <Font size="14.0" />
  180. </font>
  181. </TextArea>
  182. <Pane prefHeight="43.0" prefWidth="1.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.topAnchor="66.0" />
  183. <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" />
  184. </children>
  185. </AnchorPane>
  186. </VBox>
  187. </content>
  188. </ScrollPane>
  189. <Label text="Edit movie" textFill="#9f9f9f" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0">
  190. <font>
  191. <Font size="24.0" />
  192. </font>
  193. </Label>
  194. </AnchorPane>
  195. </center>
  196. <left>
  197. <Pane fx:id="borderLeft" maxWidth="5.0" prefWidth="10.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
  198. <cursor>
  199. <Cursor fx:constant="W_RESIZE" />
  200. </cursor></Pane>
  201. </left>
  202. <top>
  203. <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
  204. <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
  205. <Label fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
  206. <font>
  207. <Font name="Arimo" size="12.0" />
  208. </font>
  209. </Label>
  210. </AnchorPane>
  211. <AnchorPane id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
  212. <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
  213. <font>
  214. <Font name="Arimo" size="12.0" />
  215. </font>
  216. </Label>
  217. </AnchorPane>
  218. </AnchorPane>
  219. </top>
  220. </BorderPane>