55 lines
2.7 KiB
XML
55 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import javafx.scene.control.*?>
|
|
<?import javafx.scene.layout.*?>
|
|
|
|
<AnchorPane xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1"
|
|
fx:controller="de.opcua.app.ui.ConfigController"
|
|
prefWidth="800" prefHeight="600">
|
|
|
|
<Label text="OPC UA Server" layoutX="139" layoutY="40"/>
|
|
<TextField fx:id="endpointTextBox" layoutX="250" layoutY="37" prefWidth="400" prefHeight="25"/>
|
|
|
|
<Label text="Host" layoutX="192" layoutY="70"/>
|
|
<TextField fx:id="hostTextBox" layoutX="250" layoutY="67" prefWidth="400" prefHeight="25"/>
|
|
|
|
<!-- HTTP Configuration -->
|
|
<Separator layoutX="139" layoutY="105" prefWidth="520"/>
|
|
<Label text="HTTP Configuration" layoutX="139" layoutY="115" style="-fx-font-weight: bold; -fx-font-size: 14px;"/>
|
|
|
|
<CheckBox fx:id="httpEnabledCheckBox" text="Enable HTTP" layoutX="139" layoutY="145"/>
|
|
|
|
<Label text="HTTP Port" layoutX="165" layoutY="175"/>
|
|
<TextField fx:id="httpPortTextBox" layoutX="250" layoutY="172" prefWidth="100" prefHeight="25"/>
|
|
<Label text="(e.g., 8081)" layoutX="360" layoutY="175" style="-fx-text-fill: #888;"/>
|
|
|
|
<!-- HTTPS Configuration -->
|
|
<Separator layoutX="139" layoutY="215" prefWidth="520"/>
|
|
<Label text="HTTPS Configuration" layoutX="139" layoutY="225" style="-fx-font-weight: bold; -fx-font-size: 14px;"/>
|
|
|
|
<CheckBox fx:id="httpsEnabledCheckBox" text="Enable HTTPS" layoutX="139" layoutY="255"/>
|
|
|
|
<Label text="HTTPS Port" layoutX="157" layoutY="285"/>
|
|
<TextField fx:id="httpsPortTextBox" layoutX="250" layoutY="282" prefWidth="100" prefHeight="25"/>
|
|
<Label text="(e.g., 8443)" layoutX="360" layoutY="285" style="-fx-text-fill: #888;"/>
|
|
|
|
<Label text="Certificate (Keystore)" layoutX="110" layoutY="315"/>
|
|
<TextField fx:id="keystorePathTextBox" layoutX="250" layoutY="312" prefWidth="320" prefHeight="25"/>
|
|
<Button text="Browse..." layoutX="580" layoutY="312" prefWidth="75" onAction="#BrowseKeystore_Click"/>
|
|
|
|
<Label text="Keystore Password" layoutX="125" layoutY="345"/>
|
|
<PasswordField fx:id="keystorePasswordTextBox" layoutX="250" layoutY="342" prefWidth="400" prefHeight="25"/>
|
|
|
|
<Label text="Keystore Type" layoutX="145" layoutY="375"/>
|
|
<ComboBox fx:id="keystoreTypeComboBox" layoutX="250" layoutY="372" prefWidth="150"/>
|
|
|
|
<!-- Buttons -->
|
|
<Separator layoutX="139" layoutY="415" prefWidth="520"/>
|
|
|
|
<Button text="Save" layoutX="250" layoutY="435" prefWidth="100" prefHeight="35" onAction="#SaveButton_Click"
|
|
style="-fx-background-color: #007aff; -fx-text-fill: white; -fx-font-weight: bold;"/>
|
|
<Button text="Cancel" layoutX="360" layoutY="435" prefWidth="100" prefHeight="35" onAction="#SaveButton_Click"
|
|
style="-fx-background-color: #8e8e93; -fx-text-fill: white;"/>
|
|
</AnchorPane>
|
|
|