Skip to content
Snippets Groups Projects
Select Git revision
  • 015811cbe7fea938b40a6af4a0eedcd21b68d574
  • master default protected
2 results

application.conf

Blame
  • main.fxml 5.34 KiB
    <?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 javafx.scene.control.Button?>
    <?import javafx.scene.control.ComboBox?>
    <?import javafx.scene.control.Label?>
    <?import javafx.scene.control.TableColumn?>
    <?import javafx.scene.control.TableView?>
    <?import javafx.scene.control.TextField?>
    <?import javafx.scene.layout.AnchorPane?>
    <?import javafx.scene.layout.VBox?>
    <?import javafx.scene.text.Font?>
    
    <VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="552.0" prefWidth="1149.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ch.hepia.FXMLController">
      <children>
        <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="560.0" prefWidth="1150.0" VBox.vgrow="ALWAYS">
             <children>
                <TextField fx:id="nameBox" layoutX="14.0" layoutY="463.0" />
                <TextField fx:id="firstNameBox" layoutX="185.0" layoutY="463.0" />
                <TextField fx:id="addressBox" layoutX="356.0" layoutY="463.0" />
                <TextField fx:id="phoneBox" layoutX="527.0" layoutY="463.0" />
                <TextField fx:id="mailBox" layoutX="14.0" layoutY="521.0" />
                <TextField fx:id="socialBox" layoutX="185.0" layoutY="521.0" />
                <ComboBox fx:id="cBoxType" layoutX="698.0" layoutY="463.0" onAction="#selectType" prefWidth="150.0" promptText="Type" />
                <TextField fx:id="jobBox" disable="true" layoutX="356.0" layoutY="521.0" />
                <TextField fx:id="relationBox" disable="true" layoutX="527.0" layoutY="521.0" />
                <Button layoutX="698.0" layoutY="521.0" mnemonicParsing="false" onAction="#doneEditing" text="Add" />
                <Button fx:id="btnUpdate" layoutX="782.0" layoutY="521.0" mnemonicParsing="false" onAction="#updateEntry" text="Update" />
                <TextField fx:id="searchBox" layoutX="11.0" layoutY="2.0" promptText="Type here to search" />
                <Button layoutX="191.0" layoutY="2.0" mnemonicParsing="false" onAction="#searchAction" text="Search" />
                <Button fx:id="btnHome" disable="true" layoutX="271.0" layoutY="2.0" mnemonicParsing="false" onAction="#homeAction" text="Home" />
                <Button fx:id="btnDelete" layoutX="347.0" layoutY="2.0" mnemonicParsing="false" onAction="#deleteEntry" text="Delete" />
                <Button fx:id="btnLoad" layoutX="1021.0" layoutY="2.0" mnemonicParsing="false" onAction="#loadLocalSave" text="Load" />
                <Button fx:id="btnSave" layoutX="1086.0" layoutY="2.0" mnemonicParsing="false" onAction="#saveLocally" text="Save" />
                <TableView fx:id="tView" layoutY="36.0" onMouseClicked="#showEntryData" prefHeight="402.0" prefWidth="1150.0">
                  <columns>
                    <TableColumn prefWidth="75.0" text="C1" />
                    <TableColumn prefWidth="75.0" text="C2" />
                  </columns>