Make the update interval configurable
This commit is contained in:
@@ -8,21 +8,39 @@
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.BorderPane?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<SplitPane xmlns:fx="http://javafx.com/fxml" prefHeight="400.0" prefWidth="600.0">
|
||||
<ListView fx:id="sensorsList" />
|
||||
<VBox alignment="TOP_CENTER">
|
||||
<padding>
|
||||
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
|
||||
</padding>
|
||||
<Text fx:id="sensorId" text="Details" />
|
||||
<TextField fx:id="sensorName" />
|
||||
<BorderPane>
|
||||
<left>
|
||||
<Button fx:id="changeBtn" onAction="#onChangeClick" visible="false">Change</Button>
|
||||
</left>
|
||||
<right>
|
||||
<Button fx:id="visualizeBtn" onAction="#onVisualizeClick">Visualize</Button>
|
||||
</right>
|
||||
</BorderPane>
|
||||
</VBox>
|
||||
</SplitPane>
|
||||
<?import javafx.scene.layout.FlowPane?>
|
||||
<?import javafx.scene.control.CheckBox?>
|
||||
<?import javafx.scene.control.Spinner?>
|
||||
<BorderPane xmlns:fx="http://javafx.com/fxml" prefHeight="400.0" prefWidth="600.0">
|
||||
<center>
|
||||
<SplitPane>
|
||||
<ListView fx:id="sensorsList" />
|
||||
<VBox alignment="TOP_CENTER">
|
||||
<padding>
|
||||
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
|
||||
</padding>
|
||||
<Text fx:id="sensorId" text="Details" />
|
||||
<TextField fx:id="sensorName" />
|
||||
<BorderPane>
|
||||
<left>
|
||||
<Button fx:id="changeBtn" onAction="#onChangeClick" visible="false">Change</Button>
|
||||
</left>
|
||||
<right>
|
||||
<Button fx:id="visualizeBtn" onAction="#onVisualizeClick">Visualize</Button>
|
||||
</right>
|
||||
</BorderPane>
|
||||
</VBox>
|
||||
</SplitPane>
|
||||
</center>
|
||||
<bottom>
|
||||
<FlowPane>
|
||||
<Text>Millis per tick :</Text>
|
||||
<Spinner fx:id="updateInterval">
|
||||
<valueFactory>
|
||||
<javafx.scene.control.SpinnerValueFactory.IntegerSpinnerValueFactory min="10" max="2000" />
|
||||
</valueFactory>
|
||||
</Spinner>
|
||||
<CheckBox fx:id="autoUpdate" text="Auto update" />
|
||||
</FlowPane>
|
||||
</bottom>
|
||||
</BorderPane>
|
||||
|
Reference in New Issue
Block a user