Guest User

MainWindow.fxml

a guest
Oct 18th, 2015
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.scene.text.*?>
  4. <?import java.lang.*?>
  5. <?import java.util.*?>
  6. <?import javafx.scene.*?>
  7. <?import javafx.scene.control.*?>
  8. <?import javafx.scene.layout.*?>
  9.  
  10. <AnchorPane id="AnchorPane" fx:id="mainWindow" prefHeight="500.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.HassanAlthaf.StockControlSystem.View.MainView">
  11.    <children>
  12.       <MenuBar maxHeight="29.0" maxWidth="700.0" minHeight="29.0" minWidth="700.0" prefHeight="29.0" prefWidth="700.0">
  13.         <menus>
  14.           <Menu mnemonicParsing="false" text="Home">
  15.                <items>
  16.                     <MenuItem fx:id="homeMenuItem" mnemonicParsing="false" onAction="#menuClick" text="Dashboard" />
  17.                     <MenuItem fx:id="aboutMenuItem" mnemonicParsing="false" onAction="#menuClick" text="About" />
  18.                </items>
  19.           </Menu>
  20.           <Menu mnemonicParsing="false" text="Stocks">
  21.                <items>
  22.                   <MenuItem fx:id="addStockMenuItem" mnemonicParsing="false" onAction="#menuClick" text="Add Stock" />
  23.                   <MenuItem fx:id="listStocksMenuItem" mnemonicParsing="false" onAction="#menuClick" text="List Stocks" />
  24.                </items>
  25.           </Menu>
  26.             <Menu fx:id="userMenu" mnemonicParsing="false" text="Users">
  27.               <items>
  28.                 <MenuItem fx:id="loadUsersList" mnemonicParsing="false" onAction="#menuClick" text="List Users" />
  29.               </items>
  30.             </Menu>
  31.         </menus>
  32.       </MenuBar>
  33.       <AnchorPane fx:id="about" layoutY="29.0" opacity="0.0" prefHeight="471.0" prefWidth="550.0">
  34.          <children>
  35.             <Label layoutX="256.5" layoutY="32.0" text="About" />
  36.             <Label layoutX="125.0" layoutY="60.0" text="Version: " />
  37.             <Label layoutX="125.0" layoutY="82.0" text="Developer Name: " />
  38.             <Label layoutX="125.0" layoutY="104.0" text="Developer Website: " />
  39.             <Label layoutX="125.0" layoutY="126.0" text="Developer Email: " />
  40.             <Label layoutX="399.0" layoutY="60.0" text="v1.0" />
  41.             <Label layoutX="339.0" layoutY="82.0" text="Hassan Althaf" />
  42.             <Label layoutX="313.0" layoutY="104.0" text="HassanAlthaf.com" />
  43.             <Label layoutX="252.0" layoutY="127.0" text="Support@HassanAlthaf.com" />
  44.          </children>
  45.       </AnchorPane>
  46.       <AnchorPane layoutX="550.0" layoutY="29.0" prefHeight="471.0" prefWidth="150.0" style="-fx-background-color: #EEEEEE;">
  47.          <children>
  48.             <Label layoutX="53.0" layoutY="14.0" text="Stats">
  49.                <font>
  50.                   <Font name="Lato-Light" size="18.0" />
  51.                </font>
  52.             </Label>
  53.             <Label layoutX="14.0" layoutY="57.0" text="Total Stock Value:" />
  54.             <Label fx:id="totalStockValueLabel" alignment="CENTER_RIGHT" layoutX="14.0" layoutY="74.0" prefHeight="17.0" prefWidth="124.0" />
  55.             <Button layoutX="46.0" layoutY="430.0" mnemonicParsing="false" onAction="#logoutUser" text="Logout" />
  56.          </children>
  57.       </AnchorPane>
  58.       <AnchorPane fx:id="main" layoutY="29.0" prefHeight="471.0" prefWidth="550.0">
  59.           <children>
  60.             <Label layoutX="244.0" layoutY="32.0" prefHeight="17.0" prefWidth="62.0" text="Welcome" />
  61.             <Text fill="#434343" layoutX="25.0" layoutY="75.0" lineSpacing="1.0" stroke="#ffffff00" strokeType="OUTSIDE" strokeWidth="0.0" text="   Welcome to the Stock Control System, programmed by Hassan Althaf. Using this system is very simple, all you have to do is use the controls on the navigation bar above this content area." textAlignment="JUSTIFY" wrappingWidth="500.0">
  62.                <font>
  63.                   <Font name="Lato Regular" size="13.0" />
  64.                </font>
  65.             </Text>
  66.          </children>
  67.       </AnchorPane>
  68.       <AnchorPane fx:id="addInventoryItem" layoutY="29.0" opacity="0.0" prefHeight="471.0" prefWidth="550.0">
  69.           <children>
  70.             <Label layoutX="199.5" layoutY="32.0" text="Add an item to inventory" />
  71.             <TextField fx:id="productNameField" layoutX="283.0" layoutY="70.0" />
  72.             <Label layoutX="100.0" layoutY="75.0" text="Product Name:" />
  73.             <TextField fx:id="availableQuantityField" layoutX="283.0" layoutY="109.0" />
  74.             <TextField fx:id="unitPriceField" layoutX="283.0" layoutY="148.0" />
  75.             <Label layoutX="100.0" layoutY="114.0" text="Available Quantity:" />
  76.             <Label layoutX="100.0" layoutY="153.0" text="Unit Price:" />
  77.             <TextField fx:id="reorderLevelField" layoutX="283.0" layoutY="187.0" />
  78.             <Label layoutX="100.0" layoutY="192.0" text="Re-Order Level:" />
  79.             <Button layoutX="407.0" layoutY="226.0" mnemonicParsing="false" onAction="#addStockItem" text="Add" />
  80.             <Text fx:id="addItemErrors" layoutX="25.0" layoutY="281.0" strokeType="OUTSIDE" strokeWidth="0.0" wrappingWidth="500.0" />
  81.              
  82.           </children>
  83.       </AnchorPane>
  84.       <AnchorPane fx:id="listInventory" layoutY="29.0" opacity="0.0" prefHeight="471.0" prefWidth="550.0">
  85.           <children>
  86.               <Label layoutX="207.0" layoutY="32.0" text="Inventory items listing" />
  87.             <TableView fx:id="stockList" editable="true" layoutX="25.0" layoutY="60.0" prefHeight="360.0" prefWidth="500.0">
  88.               <columns>
  89.                 <TableColumn fx:id="productNameColumn" prefWidth="142.0" text="Name" />
  90.                 <TableColumn fx:id="unitPriceColumn" prefWidth="72.0" text="Unit Price" />
  91.                   <TableColumn fx:id="availableQuantityColumn" prefWidth="72.0" text="Quantity" />
  92.                   <TableColumn fx:id="reorderLevelColumn" prefWidth="108.0" text="Re-Order Level" />
  93.                   <TableColumn fx:id="totalValueColumn" minWidth="40.0" prefWidth="104.0" text="Total Value" />
  94.               </columns>
  95.             </TableView>
  96.            
  97.             <Button layoutX="416.0" layoutY="430.0" mnemonicParsing="false" onAction="#editStockItem" text="Edit" />
  98.             <Button fx:id="deleteStockItemButton" layoutX="467.0" layoutY="430.0" mnemonicParsing="false" onAction="#deleteStockItem" text="Delete" />
  99.           </children>
  100.       </AnchorPane>
  101.       <AnchorPane fx:id="listUsers" layoutY="29.0" opacity="0.0" prefHeight="471.0" prefWidth="550.0">
  102.           <children>
  103.               <Label layoutX="237.0" layoutY="32.0" text="Users listing" />
  104.             <TableView fx:id="usersList" layoutX="26.0" layoutY="85.0" prefHeight="292.0" prefWidth="500.0">
  105.               <columns>
  106.                 <TableColumn fx:id="usernameColumn" minWidth="0.0" prefWidth="96.0" text="Username" />
  107.                 <TableColumn fx:id="rankColumn" prefWidth="68.0" text="Rank" />
  108.               </columns>
  109.             </TableView>
  110.             <Button layoutX="467.0" layoutY="392.0" mnemonicParsing="false" onAction="#deleteUser" text="Delete" />
  111.             <Button layoutX="416.0" layoutY="392.0" mnemonicParsing="false" onAction="#editUser" text="Edit" />
  112.             <Button layoutX="363.0" layoutY="392.0" mnemonicParsing="false" onAction="#addUser" text="Add" />
  113.           </children>
  114.       </AnchorPane>
  115.    </children>
  116. </AnchorPane>
RAW Paste Data