test2.fxml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2015, 2019, Gluon and/or its affiliates.
  4. All rights reserved. Use is subject to license terms.
  5. This file is available and licensed under the following license:
  6. Redistribution and use in source and binary forms, with or without
  7. modification, are permitted provided that the following conditions
  8. are met:
  9. - Redistributions of source code must retain the above copyright
  10. notice, this list of conditions and the following disclaimer.
  11. - Redistributions in binary form must reproduce the above copyright
  12. notice, this list of conditions and the following disclaimer in
  13. the documentation and/or other materials provided with the distribution.
  14. - Neither the name of Oracle Corporation nor the names of its
  15. contributors may be used to endorse or promote products derived
  16. from this software without specific prior written permission.
  17. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  18. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  20. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  21. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  22. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  23. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  24. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  25. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  27. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. -->
  29. <?import java.lang.String?>
  30. <?import javafx.geometry.Insets?>
  31. <?import javafx.scene.control.Label?>
  32. <?import javafx.scene.control.Menu?>
  33. <?import javafx.scene.control.MenuBar?>
  34. <?import javafx.scene.control.MenuItem?>
  35. <?import javafx.scene.control.ScrollPane?>
  36. <?import javafx.scene.control.SplitPane?>
  37. <?import javafx.scene.control.TextField?>
  38. <?import javafx.scene.layout.AnchorPane?>
  39. <?import javafx.scene.layout.FlowPane?>
  40. <?import javafx.scene.layout.HBox?>
  41. <?import javafx.scene.layout.Pane?>
  42. <?import javafx.scene.layout.VBox?>
  43. <?import javafx.scene.paint.Color?>
  44. <?import javafx.scene.text.Font?>
  45. <?import javafx.scene.text.TextFlow?>
  46. <VBox prefHeight="600.0" prefWidth="900.0" style="-fx-background-color: #121212;" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.Controller">
  47. <children>
  48. <AnchorPane prefHeight="25.0" prefWidth="900.0">
  49. <children>
  50. <MenuBar fx:id="menuPane" prefHeight="25.0" prefWidth="827.0" style="-fx-background-color: #121212; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="73.0">
  51. <menus>
  52. <Menu mnemonicParsing="false" text="File">
  53. <items>
  54. <MenuItem mnemonicParsing="false" text="Close" />
  55. </items>
  56. </Menu>
  57. <Menu mnemonicParsing="false" text="Edit">
  58. <items>
  59. <MenuItem mnemonicParsing="false" text="Delete" />
  60. </items>
  61. </Menu>
  62. <Menu mnemonicParsing="false" text="Help">
  63. <items>
  64. <MenuItem mnemonicParsing="false" text="About" />
  65. </items>
  66. </Menu>
  67. </menus>
  68. </MenuBar>
  69. <Label fx:id="closeButton" layoutX="876.0" layoutY="4.0" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="4.0" />
  70. <Label fx:id="maximizeButton" layoutX="854.0" layoutY="4.0" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="30.0" AnchorPane.topAnchor="4.0" />
  71. <Label fx:id="minimizeButton" layoutX="832.0" layoutY="4.0" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="52.0" AnchorPane.topAnchor="4.0" />
  72. </children>
  73. </AnchorPane>
  74. <SplitPane dividerPositions="0.3392857142857143, 0.9955357142857143" focusTraversable="true" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212; -fx-border-color: #121212;" stylesheets="@style.css" VBox.vgrow="ALWAYS">
  75. <items>
  76. <AnchorPane fx:id="filterPane" maxWidth="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="120.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
  77. <children>
  78. <Label alignment="CENTER" layoutX="14.0" layoutY="14.0" minWidth="60.0" prefWidth="-1.0" style="&#10;" text="Filter" textAlignment="CENTER" wrapText="false">
  79. <font>
  80. <Font size="18.0" fx:id="x1" />
  81. </font>
  82. <textFill>
  83. <Color red="0.624" green="0.624" blue="0.624" fx:id="x2" />
  84. </textFill>
  85. </Label>
  86. <Label layoutX="24.0" layoutY="50.0" text="Name" textFill="#9f9f9f">
  87. <font>
  88. <Font size="14.0" />
  89. </font>
  90. </Label>
  91. <TextField layoutX="76.0" layoutY="48.0" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
  92. </children>
  93. </AnchorPane>
  94. <AnchorPane id="Content" fx:id="browserPane" minHeight="-1.0" minWidth="-1.0" prefHeight="551.0" prefWidth="566.0" style="-fx-background-color: #212121;">
  95. <children>
  96. <Label alignment="CENTER" layoutX="11.0" layoutY="14.0" prefWidth="80.0" style="&#10;" text="Browser" textAlignment="CENTER" wrapText="false" AnchorPane.topAnchor="14.0">
  97. <font>
  98. <Font size="18.0" fx:id="x11" />
  99. </font>
  100. <textFill>
  101. <Color red="0.624" green="0.624" blue="0.624" fx:id="x21" />
  102. </textFill>
  103. </Label>
  104. <ScrollPane fx:id="scrollPane" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" layoutX="14.0" layoutY="48.0" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minWidth="400.0" prefHeight="470.0" prefWidth="858.0" style="-fx-background-color: transparent; -fx-border-color: #212121;" vbarPolicy="NEVER" AnchorPane.bottomAnchor="31.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="48.0">
  105. <styleClass>
  106. <String fx:value="split-pane" />
  107. <String fx:value="split-pane-divider" />
  108. </styleClass>
  109. <content>
  110. <AnchorPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  111. <children>
  112. <FlowPane fx:id="moviesGrid" layoutY="-26.0" prefHeight="469.0" prefWidth="854.0" style="-fx-background-color: #212121;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
  113. </children>
  114. </AnchorPane>
  115. </content>
  116. </ScrollPane>
  117. <Label alignment="CENTER" layoutX="11.0" layoutY="520.0" onMouseClicked="#openFilter" style="&#10;" text="Advanced search?" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="11.0">
  118. <font>
  119. <Font size="16.0" fx:id="x111" />
  120. </font>
  121. <textFill>
  122. <Color red="0.624" green="0.624" blue="0.624" fx:id="x211" />
  123. </textFill>
  124. </Label>
  125. <TextField layoutX="514.0" layoutY="14.0" prefHeight="27.0" prefWidth="302.0" style="-fx-background-color: #212121; -fx-border-color: #121212; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="514.0" AnchorPane.rightAnchor="64.0" AnchorPane.topAnchor="14.0" />
  126. <Label layoutX="822.0" layoutY="19.0" text="Button" textFill="#9f9f9f" AnchorPane.rightAnchor="22.0" AnchorPane.topAnchor="19.0" />
  127. </children>
  128. </AnchorPane>
  129. <AnchorPane fx:id="detailsPane" maxWidth="0.0" minWidth="0.0" prefWidth="0.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
  130. <children>
  131. <Label alignment="CENTER" font="$x1" layoutX="14.0" layoutY="14.0" style="&#10;" text="Details" textAlignment="CENTER" textFill="$x2" wrapText="false" />
  132. <AnchorPane fx:id="detailsPicPane" layoutX="14.0" layoutY="41.0" prefHeight="222.0" AnchorPane.bottomAnchor="287.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="9.0" AnchorPane.topAnchor="41.0" />
  133. <Label fx:id="detailsNameLabel" layoutX="14.0" layoutY="265.0" text="Info" textFill="#9f9f9f">
  134. <font>
  135. <Font size="16.0" />
  136. </font>
  137. </Label>
  138. <TextFlow fx:id="detailsContent" layoutX="14.0" layoutY="287.0" prefHeight="255.0" prefWidth="277.0" />
  139. </children>
  140. </AnchorPane>
  141. </items>
  142. </SplitPane>
  143. <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0" VBox.vgrow="NEVER">
  144. <children>
  145. <Label fx:id="userLabel" maxHeight="1.7976931348623157E308" maxWidth="-1.0" style="-fx-background-color: #121212;" text="Logged in as Guest" HBox.hgrow="ALWAYS">
  146. <font>
  147. <Font size="11.0" fx:id="x3" />
  148. </font>
  149. <textFill>
  150. <Color red="0.625" green="0.625" blue="0.625" fx:id="x4" />
  151. </textFill>
  152. </Label>
  153. <Pane prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212;" HBox.hgrow="ALWAYS" />
  154. <Label fx:id="logInButton" font="$x3" maxWidth="-1.0" onMouseClicked="#openLoginForm" style="-fx-background-color: #121212;" text="Log in" textFill="$x4" HBox.hgrow="NEVER" />
  155. </children>
  156. <padding>
  157. <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
  158. </padding>
  159. </HBox>
  160. </children>
  161. </VBox>