'Number station' -> 'Numbers station'
Seems to be the more common terminology
This commit is contained in:
commit
02aac4f4e9
99
src/main/java/name/nathanmcrae/NumbersStation.fxml
Normal file
99
src/main/java/name/nathanmcrae/NumbersStation.fxml
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2015, 2019, Gluon and/or its affiliates.
|
||||||
|
All rights reserved. Use is subject to license terms.
|
||||||
|
|
||||||
|
This file is available and licensed under the following license:
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
|
||||||
|
- Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
- Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in
|
||||||
|
the documentation and/or other materials provided with the distribution.
|
||||||
|
- Neither the name of Oracle Corporation nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.control.Separator?>
|
||||||
|
<?import javafx.scene.control.TextArea?>
|
||||||
|
<?import javafx.scene.control.TextField?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.FlowPane?>
|
||||||
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
|
<AnchorPane xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="name.nathanmcrae.NumbersStationController">
|
||||||
|
<children>
|
||||||
|
<VBox maxHeight="1.7976931348623157E308" minWidth="400.0" prefHeight="400.0" prefWidth="640.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
|
<children>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" prefHeight="41.0" prefWidth="640.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="17.0" prefWidth="49.0" text="Station: " />
|
||||||
|
<TextField editable="false" style="-fx-background-color: #EEEEEE; -fx-border-color: #AAAAAA;" text="My Station">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" text="Select Station" />
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</FlowPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
<AnchorPane prefHeight="50.0" prefWidth="570.0">
|
||||||
|
<children>
|
||||||
|
<Label layoutX="14.0" text="Next message will be sent:" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="14.0">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Label fx:id="lastRetrievedLabel" layoutX="183.0" layoutY="14.0" text="2024-12-25T12:59:47" AnchorPane.leftAnchor="183.0" AnchorPane.topAnchor="14.0">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Button layoutX="534.0" layoutY="13.0" mnemonicParsing="false" onAction="#handleButtonPress" onMouseClicked="#handleButtonPress" text="Station Settings" AnchorPane.rightAnchor="6.5" AnchorPane.topAnchor="13.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="10.0" />
|
||||||
|
</padding>
|
||||||
|
</VBox>
|
||||||
|
<TextArea layoutY="110.0" prefHeight="270.0" prefWidth="640.0" text="0239 0480 2938 0928 3093 2298 3923 8933" wrapText="true" AnchorPane.bottomAnchor="40.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="110.0">
|
||||||
|
<font>
|
||||||
|
<Font size="30.0" />
|
||||||
|
</font>
|
||||||
|
</TextArea>
|
||||||
|
<FlowPane alignment="CENTER_RIGHT" prefHeight="34.0" prefWidth="620.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="Set as next message" />
|
||||||
|
</children>
|
||||||
|
</FlowPane>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</padding>
|
||||||
|
</AnchorPane>
|
21
src/main/java/name/nathanmcrae/NumbersStation.java
Normal file
21
src/main/java/name/nathanmcrae/NumbersStation.java
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package name.nathanmcrae;
|
||||||
|
|
||||||
|
import javafx.application.Application;
|
||||||
|
import javafx.fxml.FXMLLoader;
|
||||||
|
import javafx.scene.Parent;
|
||||||
|
import javafx.scene.Scene;
|
||||||
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
|
public class NumbersStation extends Application {
|
||||||
|
@Override
|
||||||
|
public void start(Stage primaryStage) throws Exception {
|
||||||
|
Parent root = FXMLLoader.load(getClass().getResource("NumbersStation.fxml"));
|
||||||
|
primaryStage.setTitle("Numbers Station");
|
||||||
|
primaryStage.setScene(new Scene(root));
|
||||||
|
primaryStage.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
launch(args);
|
||||||
|
}
|
||||||
|
}
|
108
src/main/java/name/nathanmcrae/NumbersStationConfig.fxml
Normal file
108
src/main/java/name/nathanmcrae/NumbersStationConfig.fxml
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
<?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.ScrollPane?>
|
||||||
|
<?import javafx.scene.control.Separator?>
|
||||||
|
<?import javafx.scene.control.Spinner?>
|
||||||
|
<?import javafx.scene.control.TextField?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.FlowPane?>
|
||||||
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
|
|
||||||
|
<AnchorPane prefHeight="700.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
|
<children>
|
||||||
|
<ScrollPane fitToWidth="true" hbarPolicy="NEVER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="297.0" prefWidth="600.0" AnchorPane.bottomAnchor="40.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
|
<content>
|
||||||
|
<VBox prefHeight="551.0" prefWidth="585.0">
|
||||||
|
<children>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" prefHeight="41.0" prefWidth="640.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="17.0" prefWidth="49.0" text="Station: " />
|
||||||
|
<TextField editable="false" style="-fx-background-color: #EEEEEE; -fx-border-color: #AAAAAA;" text="My Station">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</FlowPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
<AnchorPane prefHeight="120.0" prefWidth="578.0">
|
||||||
|
<children>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" layoutX="8.0" layoutY="7.0" prefHeight="63.0" prefWidth="216.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="38.0" prefWidth="103.0" text="Digit group size: (only for display)" textAlignment="RIGHT" textOverrun="CLIP" wrapText="true">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</Label>
|
||||||
|
<Spinner editable="true" prefHeight="25.0" prefWidth="96.0" />
|
||||||
|
</children>
|
||||||
|
</FlowPane>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" layoutX="7.0" layoutY="69.0" prefHeight="63.0" prefWidth="219.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="38.0" prefWidth="103.0" text="Groups in line: (only for display)" textAlignment="RIGHT" textOverrun="CLIP" wrapText="true">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</Label>
|
||||||
|
<Spinner editable="true" prefHeight="25.0" prefWidth="96.0" />
|
||||||
|
</children>
|
||||||
|
</FlowPane>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" layoutX="233.0" layoutY="7.0" prefHeight="63.0" prefWidth="216.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="38.0" prefWidth="109.0" text="Message length:" textAlignment="RIGHT" textOverrun="CLIP">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</Label>
|
||||||
|
<Spinner editable="true" prefHeight="25.0" prefWidth="96.0" />
|
||||||
|
</children>
|
||||||
|
</FlowPane>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
<AnchorPane prefHeight="147.0" prefWidth="578.0">
|
||||||
|
<children>
|
||||||
|
<Label layoutY="6.0" text="Send messages via:">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Label layoutX="170.0" layoutY="16.0" text="Numbers station address:" />
|
||||||
|
<TextField layoutX="180.0" layoutY="40.0" prefHeight="25.0" prefWidth="390.0" AnchorPane.leftAnchor="188.0" AnchorPane.rightAnchor="0.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</padding>
|
||||||
|
</VBox>
|
||||||
|
</content>
|
||||||
|
</ScrollPane>
|
||||||
|
<FlowPane alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="Save" textAlignment="RIGHT">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="Cancel">
|
||||||
|
<opaqueInsets>
|
||||||
|
<Insets />
|
||||||
|
</opaqueInsets>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</padding>
|
||||||
|
</FlowPane>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
36
src/main/java/name/nathanmcrae/NumbersStationController.java
Normal file
36
src/main/java/name/nathanmcrae/NumbersStationController.java
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
package name.nathanmcrae;
|
||||||
|
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
import javafx.fxml.FXMLLoader;
|
||||||
|
import javafx.scene.Parent;
|
||||||
|
import javafx.scene.Scene;
|
||||||
|
import javafx.stage.Stage;
|
||||||
|
import javafx.scene.control.Label;
|
||||||
|
|
||||||
|
public class NumbersStationController {
|
||||||
|
@FXML
|
||||||
|
private Label lastRetrievedLabel;
|
||||||
|
|
||||||
|
private Stage configStage;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private void handleButtonPress() {
|
||||||
|
System.out.println("Button pressed!");
|
||||||
|
lastRetrievedLabel.setText("Button pressed!");
|
||||||
|
|
||||||
|
if (configStage == null || !configStage.isShowing()) {
|
||||||
|
try {
|
||||||
|
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NumbersStationConfig.fxml"));
|
||||||
|
Parent root = fxmlLoader.load();
|
||||||
|
configStage = new Stage();
|
||||||
|
configStage.setTitle("Numbers Station Config");
|
||||||
|
configStage.setScene(new Scene(root));
|
||||||
|
configStage.show();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
configStage.toFront();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
100
src/main/java/name/nathanmcrae/NumbersStationListener.fxml
Normal file
100
src/main/java/name/nathanmcrae/NumbersStationListener.fxml
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2015, 2019, Gluon and/or its affiliates.
|
||||||
|
All rights reserved. Use is subject to license terms.
|
||||||
|
|
||||||
|
This file is available and licensed under the following license:
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
|
||||||
|
- Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
- Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in
|
||||||
|
the documentation and/or other materials provided with the distribution.
|
||||||
|
- Neither the name of Oracle Corporation nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.control.Separator?>
|
||||||
|
<?import javafx.scene.control.TableColumn?>
|
||||||
|
<?import javafx.scene.control.TableView?>
|
||||||
|
<?import javafx.scene.control.TextField?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.FlowPane?>
|
||||||
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
|
|
||||||
|
<AnchorPane xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
|
<children>
|
||||||
|
<VBox maxHeight="1.7976931348623157E308" minWidth="400.0" prefHeight="400.0" prefWidth="640.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
|
||||||
|
<children>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" prefHeight="41.0" prefWidth="640.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="17.0" prefWidth="49.0" text="Station: " />
|
||||||
|
<TextField editable="false" style="-fx-background-color: #EEEEEE; -fx-border-color: #AAAAAA;" text="My Station">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</TextField>
|
||||||
|
<Button mnemonicParsing="false" text="Select Station" />
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</FlowPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
<AnchorPane prefHeight="50.0" prefWidth="620.0">
|
||||||
|
<children>
|
||||||
|
<Label layoutX="14.0" text="Last retrieved:" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="14.0">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Label id="lblLastRetrieved" layoutX="107.0" layoutY="10.0" text="2024-12-25T12:59:47" AnchorPane.leftAnchor="107.0" AnchorPane.topAnchor="14.0">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Button layoutX="554.0" layoutY="14.0" mnemonicParsing="false" text="Staton Settings" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0" />
|
||||||
|
<Button layoutX="414.0" layoutY="14.0" mnemonicParsing="false" text="Retrieve now" AnchorPane.rightAnchor="121.0" AnchorPane.topAnchor="14.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<Label text="Messages">
|
||||||
|
<font>
|
||||||
|
<Font size="18.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</padding>
|
||||||
|
</VBox>
|
||||||
|
<TableView prefHeight="243.0" prefWidth="620.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="147.0">
|
||||||
|
<columns>
|
||||||
|
<TableColumn editable="false" prefWidth="412.5" resizable="false" sortable="false" text="Message Content" />
|
||||||
|
<TableColumn editable="false" maxWidth="200.0" minWidth="0.0" prefWidth="200.0" resizable="false" sortable="false" text="Retrieved at" />
|
||||||
|
</columns>
|
||||||
|
</TableView>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
154
src/main/java/name/nathanmcrae/NumbersStationListenerConfig.fxml
Normal file
154
src/main/java/name/nathanmcrae/NumbersStationListenerConfig.fxml
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.DatePicker?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.control.ListView?>
|
||||||
|
<?import javafx.scene.control.RadioButton?>
|
||||||
|
<?import javafx.scene.control.ScrollPane?>
|
||||||
|
<?import javafx.scene.control.Separator?>
|
||||||
|
<?import javafx.scene.control.TextField?>
|
||||||
|
<?import javafx.scene.control.ToggleGroup?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.FlowPane?>
|
||||||
|
<?import javafx.scene.layout.VBox?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
|
|
||||||
|
<AnchorPane prefHeight="700.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
|
<children>
|
||||||
|
<ScrollPane fitToWidth="true" hbarPolicy="NEVER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="297.0" prefWidth="600.0" AnchorPane.bottomAnchor="40.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
|
<content>
|
||||||
|
<VBox prefHeight="551.0" prefWidth="585.0">
|
||||||
|
<children>
|
||||||
|
<FlowPane alignment="CENTER_LEFT" prefHeight="41.0" prefWidth="640.0">
|
||||||
|
<children>
|
||||||
|
<Label prefHeight="17.0" prefWidth="49.0" text="Station: " />
|
||||||
|
<TextField editable="false" style="-fx-background-color: #EEEEEE; -fx-border-color: #AAAAAA;" text="My Station">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</FlowPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
<Label text="Retrieve messages from:" />
|
||||||
|
<RadioButton mnemonicParsing="false" text="Website">
|
||||||
|
<toggleGroup>
|
||||||
|
<ToggleGroup fx:id="messageSource" />
|
||||||
|
</toggleGroup>
|
||||||
|
</RadioButton>
|
||||||
|
<TextField prefHeight="25.0" prefWidth="345.0">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets left="20.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</TextField>
|
||||||
|
<RadioButton mnemonicParsing="false" text="External program" toggleGroup="$messageSource" />
|
||||||
|
<TextField>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets left="20.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</TextField>
|
||||||
|
<Separator prefWidth="200.0">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" top="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</Separator>
|
||||||
|
<FlowPane prefHeight="33.0" prefWidth="565.0">
|
||||||
|
<children>
|
||||||
|
<Label text="Prefixes">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Button mnemonicParsing="false" text="+">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets left="10.0" right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" prefHeight="25.0" prefWidth="24.0" text="-" />
|
||||||
|
</children>
|
||||||
|
</FlowPane>
|
||||||
|
<ListView prefHeight="200.0" prefWidth="578.0">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets top="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</ListView>
|
||||||
|
<Separator prefWidth="200.0">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" top="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</Separator>
|
||||||
|
<AnchorPane prefHeight="157.0" prefWidth="578.0">
|
||||||
|
<children>
|
||||||
|
<VBox>
|
||||||
|
<children>
|
||||||
|
<Label text="Schedule">
|
||||||
|
<font>
|
||||||
|
<Font size="14.0" />
|
||||||
|
</font>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</Label>
|
||||||
|
<RadioButton mnemonicParsing="false" text="Daily">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
<toggleGroup>
|
||||||
|
<ToggleGroup fx:id="scheduleType" />
|
||||||
|
</toggleGroup>
|
||||||
|
</RadioButton>
|
||||||
|
<RadioButton mnemonicParsing="false" text="Weekly" toggleGroup="$scheduleType">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</RadioButton>
|
||||||
|
<RadioButton mnemonicParsing="false" text="Monthly" toggleGroup="$scheduleType">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</RadioButton>
|
||||||
|
<RadioButton mnemonicParsing="false" text="Manage schedule externally" toggleGroup="$scheduleType">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets left="10.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</RadioButton>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
<DatePicker layoutX="122.0" layoutY="43.0" />
|
||||||
|
<Label layoutX="108.0" layoutY="14.0" text="Start date/time:" />
|
||||||
|
<TextField layoutX="122.0" layoutY="81.0" prefHeight="25.0" prefWidth="172.0" text="19:30:42" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
<Separator prefWidth="200.0" />
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</padding>
|
||||||
|
</VBox>
|
||||||
|
</content>
|
||||||
|
</ScrollPane>
|
||||||
|
<FlowPane alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="Save" textAlignment="RIGHT">
|
||||||
|
<FlowPane.margin>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</FlowPane.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="Cancel">
|
||||||
|
<opaqueInsets>
|
||||||
|
<Insets />
|
||||||
|
</opaqueInsets>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets right="10.0" />
|
||||||
|
</padding>
|
||||||
|
</FlowPane>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
Loading…
Reference in New Issue
Block a user