Guest User

content.fxml

a guest
Jan 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 13.58 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import java.lang.String?>
  4. <?import javafx.collections.FXCollections?>
  5. <?import javafx.scene.control.Button?>
  6. <?import javafx.scene.control.ComboBox?>
  7. <?import javafx.scene.control.Label?>
  8. <?import javafx.scene.control.PasswordField?>
  9. <?import javafx.scene.control.Tab?>
  10. <?import javafx.scene.control.TabPane?>
  11. <?import javafx.scene.control.TableColumn?>
  12. <?import javafx.scene.control.TableView?>
  13. <?import javafx.scene.control.TextField?>
  14. <?import javafx.scene.layout.AnchorPane?>
  15. <?import javafx.scene.layout.BorderPane?>
  16.  
  17. <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sevenseas.misc.contentController">
  18.    <bottom>
  19.       <Label fx:id="notificationLbl" BorderPane.alignment="CENTER" />
  20.    </bottom>
  21.    <center>
  22.       <TabPane fx:id="tabPane" prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
  23.         <tabs>
  24.           <Tab fx:id="routeManagement" text="Route Management">
  25.             <content>
  26.               <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  27.                      <children>
  28.                         <TabPane prefHeight="355.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
  29.                           <tabs>
  30.                             <Tab text="Add route">
  31.                               <content>
  32.                                 <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  33.                                        <children>
  34.                                           <Label layoutX="82.0" layoutY="128.0" text="Add route from" />
  35.                                           <TextField fx:id="portA" layoutX="167.0" layoutY="124.0" promptText="departing port" />
  36.                                           <Label layoutX="318.0" layoutY="128.0" text="to" />
  37.                                           <TextField fx:id="portB" layoutX="331.0" layoutY="124.0" promptText="arriving port" />
  38.                                           <Label layoutX="483.0" layoutY="128.0" text="where " />
  39.                                           <Label layoutX="81.0" layoutY="154.0" text="distance is around" />
  40.                                           <TextField fx:id="routeDistance" layoutX="181.0" layoutY="150.0" prefHeight="25.0" prefWidth="85.0" promptText="estimated" />
  41.                                           <Label layoutX="268.0" layoutY="154.0" text="km and the rate is" />
  42.                                           <TextField fx:id="distanceRate" layoutX="366.0" layoutY="150.0" prefHeight="25.0" prefWidth="105.0" promptText="cost" />
  43.                                           <Label layoutX="474.0" layoutY="154.0" text="per km." />
  44.                                           <Label layoutX="81.0" layoutY="181.0" text="Are you sure you wanted to" />
  45.                                           <Button fx:id="addRoute" layoutX="231.0" layoutY="177.0" mnemonicParsing="false" onAction="#addRoute" text="add" />
  46.                                           <Label layoutX="273.0" layoutY="181.0" text="?" />
  47.                                        </children>
  48.                                     </AnchorPane>
  49.                               </content>
  50.                             </Tab>
  51.                             <Tab text="View route">
  52.                               <content>
  53.                                 <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
  54.                               </content>
  55.                             </Tab>
  56.                           </tabs>
  57.                         </TabPane>
  58.                      </children></AnchorPane>
  59.             </content>
  60.           </Tab>
  61.             <Tab fx:id="freightManagement" text="Freight Management">
  62.                <content>
  63.                   <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  64.                      <children>
  65.                         <TabPane prefHeight="357.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
  66.                           <tabs>
  67.                             <Tab text="Add freight">
  68.                               <content>
  69.                                 <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  70.                                        <children>
  71.                                           <Label layoutX="112.0" layoutY="127.0" text="User" />
  72.                                           <TextField layoutX="143.0" layoutY="123.0" />
  73.                                           <Label layoutX="295.0" layoutY="127.0" text="would like to ship his/her cargo item" />
  74.                                           <Label layoutX="111.0" layoutY="156.0" text="from" />
  75.                                           <TextField layoutX="143.0" layoutY="152.0" prefHeight="25.0" prefWidth="138.0" />
  76.                                           <Label layoutX="286.0" layoutY="156.0" text="to" />
  77.                                           <TextField layoutX="300.0" layoutY="152.0" />
  78.                                           <Label layoutX="451.0" layoutY="156.0" text="where" />
  79.                                           <Label layoutX="110.0" layoutY="185.0" text="the cargo weighted around" />
  80.                                           <Label layoutX="323.0" layoutY="185.0" text="kg. Do you want to " />
  81.                                           <TextField layoutX="259.0" layoutY="181.0" prefHeight="25.0" prefWidth="58.0" />
  82.                                           <Label layoutX="478.0" layoutY="185.0" text="it?" />
  83.                                           <Button layoutX="431.0" layoutY="181.0" mnemonicParsing="false" text="add" />
  84.                                        </children>
  85.                                     </AnchorPane>
  86.                               </content>
  87.                             </Tab>
  88.                             <Tab text="View freight">
  89.                               <content>
  90.                                 <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
  91.                               </content>
  92.                             </Tab>
  93.                           </tabs>
  94.                         </TabPane>
  95.                      </children></AnchorPane>
  96.                </content>
  97.             </Tab>
  98.           <Tab fx:id="userManagement" text="User Management">
  99.             <content>
  100.               <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  101.                      <children>
  102.                         <TabPane layoutY="-1.0" prefHeight="357.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
  103.                           <tabs>
  104.                               <Tab text="View">
  105.                                  <content>
  106.                                     <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  107.                                        <children>
  108.                                           <TableView layoutY="-3.0" prefHeight="331.0" prefWidth="600.0">
  109.                                             <columns>
  110.                                               <TableColumn fx:id="name" prefWidth="75.0" text="C1" />
  111.                                               <TableColumn prefWidth="75.0" text="C2" />
  112.                                             </columns>
  113.                                           </TableView>
  114.                                        </children></AnchorPane>
  115.                                  </content>
  116.                               </Tab>
  117.                             <Tab text="Register">
  118.                               <content>
  119.                                 <AnchorPane fx:id="rolesCmd" minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  120.                                        <children>
  121.                                           <TextField fx:id="usernameTxt" layoutX="263.0" layoutY="91.0" />
  122.                                           <Label layoutX="188.0" layoutY="95.0" text="Username:" />
  123.                                           <Label layoutX="188.0" layoutY="127.0" text="Password:" />
  124.                                           <Label layoutX="188.0" layoutY="163.0" text="Roles:" />
  125.                                           <PasswordField fx:id="passwordTxt" layoutX="263.0" layoutY="123.0" />
  126.                                           <ComboBox fx:id="rolesCmb" layoutX="263.0" layoutY="159.0" prefWidth="150.0" promptText="none">
  127.                                               <items>
  128.                                                   <FXCollections fx:factory="observableArrayList">
  129.                                                       <String fx:value="admin" />
  130.                                                       <String fx:value="client" />
  131.                                                       <String fx:value="customer" />
  132.                                                   </FXCollections>
  133.                                               </items>
  134.                                           </ComboBox>
  135.                                           <Button fx:id="registerBtn" layoutX="188.0" layoutY="229.0" mnemonicParsing="false" onAction="#registerUser" prefHeight="25.0" prefWidth="82.0" text="Register" />
  136.                                           <Button fx:id="resetBtn" layoutX="330.0" layoutY="229.0" mnemonicParsing="false" onAction="#resetField" prefHeight="25.0" prefWidth="82.0" text="Reset" />
  137.  
  138.                                        </children>
  139.                                     </AnchorPane>
  140.                               </content>
  141.                             </Tab>
  142.                               <Tab text="Edit">
  143.                                  <content>
  144.                                     <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  145.                                        <children>
  146.                                           <TextField fx:id="searchTxt" layoutX="40.0" layoutY="14.0" onAction="#searchUser" prefHeight="25.0" prefWidth="411.0" />
  147.                                           <Button fx:id="searchBtn" layoutX="458.0" layoutY="14.0" mnemonicParsing="false" onAction="#searchUser" prefHeight="25.0" prefWidth="103.0" text="Search" />
  148.                                           <TextField fx:id="usernameTxt" layoutX="263.0" layoutY="108.0" />
  149.                                           <Label layoutX="188.0" layoutY="112.0" text="Username:" />
  150.                                           <Label layoutX="188.0" layoutY="143.0" text="Password:" />
  151.                                           <PasswordField fx:id="passwordTxt" layoutX="263.0" layoutY="139.0" />
  152.                                           <Button fx:id="editBtn" layoutX="188.0" layoutY="199.0" mnemonicParsing="false" onAction="#registerUser" prefHeight="25.0" prefWidth="82.0" text="Edit" />
  153.                                           <Button fx:id="resetBtn" layoutX="330.0" layoutY="199.0" mnemonicParsing="false" onAction="#resetField" prefHeight="25.0" prefWidth="82.0" text="Reset" />
  154.                                        </children></AnchorPane>
  155.                                  </content>
  156.                               </Tab>
  157.                             <Tab text="Remove">
  158.                               <content>
  159.                                 <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  160.                                        <children>
  161.                                           <TextField fx:id="deleteTxt" layoutX="143.0" layoutY="152.0" />
  162.                                           <Label layoutX="107.0" layoutY="156.0" text="I wish" />
  163.                                           <Label layoutX="296.0" layoutY="156.0" text="can be" />
  164.                                           <Button fx:id="removeBtn" layoutX="334.0" layoutY="152.0" mnemonicParsing="false" onAction="#removeUser" text="removed" />
  165.                                           <Label layoutX="400.0" layoutY="156.0" text="from data storage." />
  166.                                        </children></AnchorPane>
  167.                               </content>
  168.                             </Tab>
  169.                           </tabs>
  170.                         </TabPane>
  171.                      </children>
  172.                   </AnchorPane>
  173.             </content>
  174.           </Tab>
  175.             <Tab fx:id="clientManagement" text="Client Management">
  176.                <content>
  177.                   <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  178.                      <children>
  179.                         <TabPane prefHeight="357.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE">
  180.                            <tabs>
  181.                               <Tab text="Add ship">
  182.                                  <content>
  183.                                     <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
  184.                                  </content>
  185.                               </Tab>
  186.                               <Tab text="View client">
  187.                                  <content>
  188.                                     <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
  189.                                  </content>
  190.                               </Tab>
  191.                            </tabs>
  192.                         </TabPane>
  193.                      </children>
  194.                   </AnchorPane>
  195.                </content>
  196.             </Tab>
  197.         </tabs>
  198.       </TabPane>
  199.    </center>
  200. </BorderPane>
Add Comment
Please, Sign In to add comment