Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.Label?>
  6. <?import javafx.scene.control.PasswordField?>
  7. <?import javafx.scene.control.RadioButton?>
  8. <?import javafx.scene.control.Tab?>
  9. <?import javafx.scene.control.TabPane?>
  10. <?import javafx.scene.control.TableView?>
  11. <?import javafx.scene.control.TextField?>
  12. <?import javafx.scene.layout.AnchorPane?>
  13. <?import javafx.scene.layout.ColumnConstraints?>
  14. <?import javafx.scene.layout.GridPane?>
  15. <?import javafx.scene.layout.RowConstraints?>
  16. <?import javafx.scene.shape.Arc?>
  17.  
  18. <AnchorPane id="AnchorPane" minHeight="400.0" minWidth="600.0" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="dy.fi.maja.mesdbservice.MainPageController">
  19. <children>
  20. <TabPane prefHeight="400.0" prefWidth="600.0" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  21. <tabs>
  22. <Tab text="Main">
  23. <content>
  24. <GridPane>
  25. <columnConstraints>
  26. <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="453.0" />
  27. <ColumnConstraints hgrow="SOMETIMES" maxWidth="140.0" minWidth="10.0" prefWidth="140.0" />
  28. </columnConstraints>
  29. <rowConstraints>
  30. <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
  31. </rowConstraints>
  32. <children>
  33. <AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1">
  34. <children>
  35. <Button fx:id="serviceStartButton" layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onAction="#startService" prefHeight="25.0" prefWidth="117.0" text="Start" />
  36. </children>
  37. </AnchorPane>
  38. <TableView fx:id="dataTable" prefHeight="200.0" prefWidth="200.0">
  39. <GridPane.margin>
  40. <Insets bottom="10.0" left="10.0" top="10.0" />
  41. </GridPane.margin>
  42. </TableView>
  43. </children>
  44. </GridPane>
  45. </content>
  46. </Tab>
  47. <Tab text="Settings">
  48. <content>
  49. <AnchorPane prefHeight="200.0" prefWidth="200.0">
  50. <children>
  51. <TextField fx:id="dbPathTextField" editable="false" layoutX="14.0" layoutY="31.0" prefHeight="25.0" prefWidth="260.0" />
  52. <Label layoutX="14.0" layoutY="14.0" text="Database path:" />
  53. <Label layoutX="14.0" layoutY="69.0" text="MQTT url:" />
  54. <TextField fx:id="mQTTUrlTextField" layoutX="14.0" layoutY="86.0" prefHeight="25.0" prefWidth="260.0" />
  55. <Label layoutX="313.0" layoutY="69.0" text="MQTT username:" />
  56. <TextField fx:id="mQTTUsernameTextField" layoutX="313.0" layoutY="86.0" prefHeight="25.0" prefWidth="127.0" />
  57. <PasswordField fx:id="mQTTPasswordTextField" layoutX="446.0" layoutY="86.0" prefHeight="25.0" prefWidth="127.0" />
  58. <Label layoutX="446.0" layoutY="69.0" text="MQTT password:" />
  59. <TextField fx:id="mQTTPortTextField" layoutX="14.0" layoutY="137.0" prefHeight="25.0" prefWidth="100.0" text="1883" />
  60. <Label layoutX="14.0" layoutY="120.0" text="MQTT port:" />
  61. <Label layoutX="14.0" layoutY="195.0" text="Server url:" />
  62. <TextField fx:id="serverUrlTextField" layoutX="14.0" layoutY="212.0" prefHeight="25.0" prefWidth="260.0" />
  63. <TextField fx:id="serverPortTextField" layoutX="14.0" layoutY="265.0" prefHeight="25.0" prefWidth="100.0" />
  64. <Label layoutX="14.0" layoutY="248.0" text="Server port:" />
  65. <Button fx:id="fileChooserButton" layoutX="287.0" layoutY="31.0" mnemonicParsing="false" onAction="#fileChooserButtonClicked" text="Open..." />
  66. <RadioButton fx:id="mqttRadioButton" layoutX="127.0" layoutY="141.0" mnemonicParsing="false" onAction="#connectionTypeChanged" text="Use MQTT" />
  67. <RadioButton fx:id="serverRadioButton" layoutX="127.0" layoutY="269.0" mnemonicParsing="false" onAction="#connectionTypeChanged" text="Use Http-server" />
  68. </children>
  69. </AnchorPane>
  70. </content>
  71. </Tab>
  72. </tabs>
  73. </TabPane>
  74. <AnchorPane layoutX="574.0" prefHeight="24.0" prefWidth="24.0" AnchorPane.bottomAnchor="374.0" AnchorPane.leftAnchor="574.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0">
  75. <children>
  76. <Arc fx:id="loadingIndicator" centerX="6.0" centerY="7.0" fill="TRANSPARENT" layoutX="3.0" layoutY="5.0" length="90.0" radiusX="10.0" radiusY="9.0" stroke="#ffbe00" strokeLineCap="BUTT" strokeWidth="5.0" />
  77. </children>
  78. </AnchorPane>
  79. </children>
  80. </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement