Projects / Hotel Management System / src / hoteldraft / FXML / Search.fxml
Search.fxml
Raw
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.paint.*?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.*?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>

<BorderPane fx:id="parent" maxHeight="-Infinity" minHeight="-Infinity" prefHeight="700.0" prefWidth="1100.0" style="-fx-background-color: transparent;" stylesheets="@test.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="hoteldraft.SearchController">
   <left>
      <VBox fx:id="navVBox" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="875.0" prefWidth="245.0" style="-fx-background-color: #1A374D; -fx-background-radius: 30 0 0 30;" stylesheets="@test.css" BorderPane.alignment="TOP_LEFT">
         <children>
            <Button alignment="CENTER" mnemonicParsing="false" onAction="#switchToLoggedIn" prefHeight="95.0" prefWidth="248.0" style="-fx-background-radius: 30 0 0 0;" stylesheets="@test.css" text="HOME" textAlignment="CENTER" textFill="#6998ab">
               <font>
                  <Font name="Century Gothic" size="36.0" />
               </font>
            </Button>
            <Button alignment="CENTER" layoutX="10.0" layoutY="10.0" mnemonicParsing="false" onAction="#switchToReservations" prefHeight="95.0" prefWidth="245.0" stylesheets="@test.css" text="RESERVATIONS" textAlignment="CENTER" textFill="#6998ab">
               <font>
                  <Font name="Century Gothic" size="28.0" />
               </font>
            </Button>
            <Button alignment="CENTER" layoutX="10.0" layoutY="105.0" mnemonicParsing="false" onAction="#switchToRooms" prefHeight="95.0" prefWidth="245.0" stylesheets="@test.css" text="ROOMS" textAlignment="CENTER" textFill="#6998ab">
               <font>
                  <Font name="Century Gothic" size="36.0" />
               </font>
            </Button>
            <Button alignment="CENTER" layoutX="10.0" layoutY="200.0" mnemonicParsing="false" onAction="#switchToServices" prefHeight="95.0" prefWidth="245.0" stylesheets="@test.css" text="SERVICES" textAlignment="CENTER" textFill="#6998ab">
               <font>
                  <Font name="Century Gothic" size="36.0" />
               </font>
            </Button>
            <Button alignment="CENTER" layoutX="10.0" layoutY="295.0" mnemonicParsing="false" onAction="#switchToSearch" prefHeight="95.0" prefWidth="245.0" stylesheets="@test.css" text="SEARCH" textAlignment="CENTER" textFill="#6998ab">
               <font>
                  <Font name="Century Gothic" size="36.0" />
               </font>
            </Button>
            <Button fx:id="settingsImgBtn" mnemonicParsing="false" onAction="#switchToSettings" style="-fx-translate-x: 10; -fx-translate-y: 140; -fx-background-color: transparent;">
               <graphic>
                  <ImageView fx:id="settingsImg" fitHeight="64.0" fitWidth="109.0" pickOnBounds="true" preserveRatio="true">
                     <image>
                        <Image url="@settings-symbol.png" />
                     </image>
                  </ImageView>
               </graphic>
            </Button>
         </children>
      </VBox>
   </left>
   <center>
      <Pane fx:id="pane" prefHeight="875.0" prefWidth="783.0" style="-fx-background-color: #406882; -fx-background-radius: 0 30 30 0;" BorderPane.alignment="CENTER">
         <children>
            <Label fx:id="exit" layoutX="820.0" layoutY="7.0" onMouseClicked="#close_app" stylesheets="@test.css" text="✖">
               <font>
                  <Font size="24.0" />
               </font>
            </Label>
            <Label fx:id="minimize" layoutX="789.0" layoutY="3.0" onMouseClicked="#minimize_app" text="🗕">
               <font>
                  <Font size="24.0" />
               </font>
            </Label>
            <ComboBox fx:id="byCB" layoutX="155.0" layoutY="67.0" onAction="#byCBm" prefHeight="39.0" prefWidth="150.0" promptText="..." style="-fx-background-radius: 30 0 0 30;" stylesheets="@test.css" />
            <TextField fx:id="sinput" layoutX="304.0" layoutY="67.0" onKeyPressed="#enterSearch" prefHeight="39.0" prefWidth="382.0" style="-fx-border-radius: 12;" />
            <Text fill="#b1d0e0" layoutX="58.0" layoutY="93.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Search by">
               <font>
                  <Font name="Century Gothic" size="18.0" />
               </font></Text>
            <Button fx:id="s" layoutX="686.0" layoutY="67.0" mnemonicParsing="false" onAction="#search" prefHeight="39.0" prefWidth="65.0" style="-fx-background-color: #1A374D; -fx-background-radius: 0 30 30 0;" styleClass="buttonText" text="search" textAlignment="CENTER" textFill="#6998ab" />
            <HBox layoutX="19.0" layoutY="122.0" prefHeight="545.0" prefWidth="817.0" style="-fx-border-color: b1d0e0; -fx-border-radius: 30;">
               <children>
                  <VBox prefHeight="535.0" prefWidth="156.0">
                     <children>
                        <Label alignment="CENTER_RIGHT" prefHeight="44.0" prefWidth="124.0" styleClass="font" stylesheets="@test.css" text="GUEST NAME" textAlignment="RIGHT" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="gname" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="225.0" style="-fx-background-radius: 0 0 0 20;" />
                     </children>
                  </VBox>
                  <VBox prefHeight="535.0" prefWidth="124.0">
                     <children>
                        <Label prefHeight="44.0" prefWidth="110.0" styleClass="font" text=" ID" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="gid" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="124.0" />
                     </children>
                  </VBox>
                  <VBox prefHeight="535.0" prefWidth="107.0">
                     <children>
                        <Label prefHeight="44.0" prefWidth="107.0" styleClass="font" text=" EMAIL" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="gemail" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="105.0" />
                     </children>
                  </VBox>
                  <VBox prefHeight="535.0" prefWidth="136.0">
                     <children>
                        <Label prefHeight="44.0" prefWidth="136.0" styleClass="font" text="ADate -&gt; DDate" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="gdate" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="135.0" />
                     </children>
                  </VBox>
                  <VBox prefHeight="535.0" prefWidth="109.0">
                     <children>
                        <Label prefHeight="44.0" prefWidth="126.0" styleClass="font" text="SPECIAL REQ" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="spreq" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="135.0" />
                     </children>
                  </VBox>
                  <VBox prefHeight="535.0" prefWidth="106.0">
                     <children>
                        <Label prefHeight="44.0" prefWidth="126.0" styleClass="font" text=" ROOM" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="groom" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="111.0" />
                     </children>
                  </VBox>
                  <VBox prefHeight="535.0" prefWidth="89.0">
                     <children>
                        <Label prefHeight="44.0" prefWidth="144.0" styleClass="font" text="GUEST NO" textFill="#b1d0e0">
                           <font>
                              <Font name="Arial" size="18.0" />
                           </font>
                        </Label>
                        <ListView fx:id="gno" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="500.0" prefWidth="88.0" style="-fx-background-radius: 0 0 20 0;" />
                     </children>
                  </VBox>
               </children>
            </HBox>
            <Text fx:id="vmes" fill="#ffef00" layoutX="176.0" layoutY="49.0" stroke="#ffef00" strokeType="OUTSIDE" strokeWidth="0.0" textAlignment="CENTER" wrappingWidth="503.13671875">
               <font>
                  <Font name="Century Gothic Bold" size="18.0" />
               </font>
            </Text>
         </children>
      </Pane>
   </center>
</BorderPane>