123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Copyright (c) 2015, 2019, Gluon and/or its affiliates.
- All rights reserved. Use is subject to license terms.
- This file is available and licensed under the following license:
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the distribution.
- - Neither the name of Oracle Corporation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- -->
- <?import java.lang.String?>
- <?import javafx.geometry.Insets?>
- <?import javafx.scene.Cursor?>
- <?import javafx.scene.control.Label?>
- <?import javafx.scene.control.Menu?>
- <?import javafx.scene.control.MenuBar?>
- <?import javafx.scene.control.MenuItem?>
- <?import javafx.scene.control.ScrollPane?>
- <?import javafx.scene.control.SplitPane?>
- <?import javafx.scene.control.TextArea?>
- <?import javafx.scene.control.TextField?>
- <?import javafx.scene.image.ImageView?>
- <?import javafx.scene.layout.AnchorPane?>
- <?import javafx.scene.layout.FlowPane?>
- <?import javafx.scene.layout.HBox?>
- <?import javafx.scene.layout.Pane?>
- <?import javafx.scene.layout.VBox?>
- <?import javafx.scene.paint.Color?>
- <?import javafx.scene.shape.Polyline?>
- <?import javafx.scene.text.Font?>
- <?import javafx.scene.text.TextFlow?>
- <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.BrowserController">
- <children>
- <AnchorPane prefHeight="25.0" prefWidth="900.0">
- <children>
- <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">
- <menus>
- <Menu mnemonicParsing="false" text="File">
- <items>
- <MenuItem mnemonicParsing="false" onAction="#openStatsStudioForm" text="Studio stats" />
- <MenuItem fx:id="statsMenu" mnemonicParsing="false" onAction="#openStatsGenreForm" text="Genre stats" />
- <MenuItem fx:id="reloadMenu" mnemonicParsing="false" onAction="#loadPosters" text="Reload" />
- <MenuItem mnemonicParsing="false" onAction="#closeStage" text="Close" />
- </items>
- </Menu>
- <Menu mnemonicParsing="false" text="Edit">
- <items>
- <MenuItem fx:id="addMenu" mnemonicParsing="false" onAction="#openAddForm" text="Add" />
- </items>
- </Menu>
- <Menu mnemonicParsing="false" text="Help">
- <items>
- <MenuItem mnemonicParsing="false" text="About" />
- </items>
- </Menu>
- </menus>
- </MenuBar>
- <Label fx:id="closeButton" layoutX="876.0" layoutY="4.0" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="4.0" />
- <Label fx:id="maximizeButton" layoutX="854.0" layoutY="4.0" onMouseClicked="#maximizeStageChange" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="30.0" AnchorPane.topAnchor="4.0" />
- <Label fx:id="minimizeButton" layoutX="832.0" layoutY="4.0" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="52.0" AnchorPane.topAnchor="4.0" />
- </children>
- </AnchorPane>
- <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">
- <items>
- <AnchorPane fx:id="filterPane" maxWidth="0.0" minWidth="300.0" prefHeight="550.0" prefWidth="120.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
- <children>
- <Label alignment="CENTER" layoutX="14.0" layoutY="14.0" minWidth="60.0" prefWidth="-1.0" style=" " text="Filter" textAlignment="CENTER" wrapText="false">
- <font>
- <Font size="18.0" fx:id="x1" />
- </font>
- <textFill>
- <Color red="0.624" green="0.624" blue="0.624" fx:id="x2" />
- </textFill>
- </Label>
- <Label layoutX="24.0" layoutY="50.0" text="Name" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="titleTextBox" layoutX="82.0" layoutY="48.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="84.0" text="Genre" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="genreTextBox" layoutX="82.0" layoutY="82.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="118.0" text="Year" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="yearTextBox" layoutX="82.0" layoutY="116.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="152.0" text="Duration" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="timeTextBox" layoutX="82.0" layoutY="150.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="186.0" text="Studio" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="studioTextBox" layoutX="82.0" layoutY="184.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="220.0" text="Director" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="directorTextBox" layoutX="82.0" layoutY="218.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="254.0" text="Actor" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <Label layoutX="24.0" layoutY="288.0" text="Role" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="roleTextBox" layoutX="82.0" layoutY="286.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="322.0" text="Rating" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextField fx:id="rateTextBox" layoutX="82.0" layoutY="320.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- <Label layoutX="24.0" layoutY="353.0" text="Desc" textFill="#9f9f9f">
- <font>
- <Font size="14.0" />
- </font>
- </Label>
- <TextArea fx:id="descriptionTextBox" layoutX="80.0" layoutY="353.0" minHeight="70.0" onKeyTyped="#getFilterMovies" prefHeight="162.0" prefWidth="209.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #212121;" stylesheets="@FilterBlockStyle.css" wrapText="true" AnchorPane.bottomAnchor="36.0" AnchorPane.topAnchor="353.0">
- <font>
- <Font size="14.0" />
- </font>
- </TextArea>
- <Label fx:id="filterButton" alignment="CENTER" layoutX="252.0" layoutY="519.0" onMouseClicked="#getFilterMovies" style=" " text="Filter" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.rightAnchor="15.0">
- <font>
- <Font size="16.0" fx:id="x1111" />
- </font>
- <textFill>
- <Color red="0.624" green="0.624" blue="0.624" fx:id="x2111" />
- </textFill>
- </Label>
- <TextField fx:id="actorTextBox" layoutX="82.0" layoutY="252.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
- </children>
- </AnchorPane>
- <AnchorPane id="Content" fx:id="browserPane" minHeight="-1.0" minWidth="-1.0" prefHeight="551.0" prefWidth="566.0" style="-fx-background-color: #212121;">
- <children>
- <Label alignment="CENTER" layoutX="11.0" layoutY="14.0" prefWidth="80.0" style=" " text="Browser" textAlignment="CENTER" wrapText="false" AnchorPane.topAnchor="14.0">
- <font>
- <Font size="18.0" fx:id="x11" />
- </font>
- <textFill>
- <Color red="0.624" green="0.624" blue="0.624" fx:id="x21" />
- </textFill>
- </Label>
- <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">
- <styleClass>
- <String fx:value="split-pane" />
- <String fx:value="split-pane-divider" />
- </styleClass>
- <content>
- <AnchorPane prefHeight="200.0" prefWidth="200.0">
- <children>
- <FlowPane fx:id="moviesGrid" prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #212121;" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0" />
- </children>
- </AnchorPane>
- </content>
- </ScrollPane>
- <Label alignment="CENTER" layoutX="11.0" layoutY="520.0" onMouseClicked="#openFilter" style=" " text="Search" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="11.0">
- <font>
- <Font size="16.0" fx:id="x111" />
- </font>
- <textFill>
- <Color red="0.624" green="0.624" blue="0.624" fx:id="x211" />
- </textFill>
- </Label>
- </children>
- </AnchorPane>
- <AnchorPane fx:id="detailsPane" maxWidth="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="318.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
- <children>
- <Label alignment="CENTER" font="$x1" layoutX="14.0" layoutY="14.0" style=" " text="Details" textAlignment="CENTER" textFill="#9f9f9f" wrapText="false" />
- <ImageView fx:id="detailsPicPane" fitHeight="222.0" fitWidth="150.0" layoutX="14.0" layoutY="41.0" pickOnBounds="true" AnchorPane.bottomAnchor="287.0" AnchorPane.leftAnchor="75.0" AnchorPane.rightAnchor="75.0" AnchorPane.topAnchor="41.0" />
- <Label fx:id="detailsNameLabel" layoutX="14.0" layoutY="265.0" text="Info" textFill="#9f9f9f">
- <font>
- <Font size="16.0" />
- </font>
- </Label>
- <Label fx:id="deleteMovieButton" layoutX="-14.0" layoutY="528.0" onMouseClicked="#openDeleteForm" text="Delete" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0">
- <font>
- <Font size="16.0" />
- </font>
- </Label>
- <Label fx:id="editMovieButton" layoutX="212.0" layoutY="534.0" text="Edit" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="71.0">
- <font>
- <Font size="16.0" />
- </font>
- </Label>
- <ScrollPane fitToHeight="true" fitToWidth="true" layoutX="14.0" layoutY="290.0" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: transparent;" AnchorPane.bottomAnchor="39.0" AnchorPane.topAnchor="290.0">
- <content>
- <TextFlow fx:id="detailsContent" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: #212121;" />
- </content>
- </ScrollPane>
- </children>
- </AnchorPane>
- </items>
- </SplitPane>
- <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0" VBox.vgrow="NEVER">
- <children>
- <Label fx:id="userLabel" maxHeight="1.7976931348623157E308" maxWidth="-1.0" style="-fx-background-color: #121212;" text="Logged in as Guest" HBox.hgrow="ALWAYS">
- <font>
- <Font size="11.0" fx:id="x3" />
- </font>
- <textFill>
- <Color red="0.625" green="0.625" blue="0.625" fx:id="x4" />
- </textFill>
- </Label>
- <Pane prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212;" HBox.hgrow="ALWAYS" />
- <Label fx:id="logInButton" font="$x3" maxWidth="-1.0" onMouseClicked="#openLoginForm" style="-fx-background-color: #121212;" text="Log in" textFill="$x4" HBox.hgrow="NEVER" />
- <Polyline fx:id="resizerPoly" fill="#9f9f9f" points="233.0, -3.0, 251.0, -20.0, 251.0, -3.0, 233.0, -3.0" strokeType="INSIDE">
- <cursor>
- <Cursor fx:constant="SE_RESIZE" />
- </cursor>
- </Polyline>
- </children>
- <padding>
- <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
- </padding>
- </HBox>
- </children>
- </VBox>
|