Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.geometry.Insets?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.Label?>
- <?import javafx.scene.control.PasswordField?>
- <?import javafx.scene.control.RadioButton?>
- <?import javafx.scene.control.Tab?>
- <?import javafx.scene.control.TabPane?>
- <?import javafx.scene.control.TableView?>
- <?import javafx.scene.control.TextField?>
- <?import javafx.scene.layout.AnchorPane?>
- <?import javafx.scene.layout.ColumnConstraints?>
- <?import javafx.scene.layout.GridPane?>
- <?import javafx.scene.layout.RowConstraints?>
- <?import javafx.scene.shape.Arc?>
- <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">
- <children>
- <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">
- <tabs>
- <Tab text="Main">
- <content>
- <GridPane>
- <columnConstraints>
- <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="453.0" />
- <ColumnConstraints hgrow="SOMETIMES" maxWidth="140.0" minWidth="10.0" prefWidth="140.0" />
- </columnConstraints>
- <rowConstraints>
- <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
- </rowConstraints>
- <children>
- <AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1">
- <children>
- <Button fx:id="serviceStartButton" layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onAction="#startService" prefHeight="25.0" prefWidth="117.0" text="Start" />
- </children>
- </AnchorPane>
- <TableView fx:id="dataTable" prefHeight="200.0" prefWidth="200.0">
- <GridPane.margin>
- <Insets bottom="10.0" left="10.0" top="10.0" />
- </GridPane.margin>
- </TableView>
- </children>
- </GridPane>
- </content>
- </Tab>
- <Tab text="Settings">
- <content>
- <AnchorPane prefHeight="200.0" prefWidth="200.0">
- <children>
- <TextField fx:id="dbPathTextField" editable="false" layoutX="14.0" layoutY="31.0" prefHeight="25.0" prefWidth="260.0" />
- <Label layoutX="14.0" layoutY="14.0" text="Database path:" />
- <Label layoutX="14.0" layoutY="69.0" text="MQTT url:" />
- <TextField fx:id="mQTTUrlTextField" layoutX="14.0" layoutY="86.0" prefHeight="25.0" prefWidth="260.0" />
- <Label layoutX="313.0" layoutY="69.0" text="MQTT username:" />
- <TextField fx:id="mQTTUsernameTextField" layoutX="313.0" layoutY="86.0" prefHeight="25.0" prefWidth="127.0" />
- <PasswordField fx:id="mQTTPasswordTextField" layoutX="446.0" layoutY="86.0" prefHeight="25.0" prefWidth="127.0" />
- <Label layoutX="446.0" layoutY="69.0" text="MQTT password:" />
- <TextField fx:id="mQTTPortTextField" layoutX="14.0" layoutY="137.0" prefHeight="25.0" prefWidth="100.0" text="1883" />
- <Label layoutX="14.0" layoutY="120.0" text="MQTT port:" />
- <Label layoutX="14.0" layoutY="195.0" text="Server url:" />
- <TextField fx:id="serverUrlTextField" layoutX="14.0" layoutY="212.0" prefHeight="25.0" prefWidth="260.0" />
- <TextField fx:id="serverPortTextField" layoutX="14.0" layoutY="265.0" prefHeight="25.0" prefWidth="100.0" />
- <Label layoutX="14.0" layoutY="248.0" text="Server port:" />
- <Button fx:id="fileChooserButton" layoutX="287.0" layoutY="31.0" mnemonicParsing="false" onAction="#fileChooserButtonClicked" text="Open..." />
- <RadioButton fx:id="mqttRadioButton" layoutX="127.0" layoutY="141.0" mnemonicParsing="false" onAction="#connectionTypeChanged" text="Use MQTT" />
- <RadioButton fx:id="serverRadioButton" layoutX="127.0" layoutY="269.0" mnemonicParsing="false" onAction="#connectionTypeChanged" text="Use Http-server" />
- </children>
- </AnchorPane>
- </content>
- </Tab>
- </tabs>
- </TabPane>
- <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">
- <children>
- <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" />
- </children>
- </AnchorPane>
- </children>
- </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement