1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 23:40:08 -08:00

Add a stop button.

This commit is contained in:
Danila Fedorin 2017-08-05 13:57:27 -07:00
parent 37a759288a
commit 4f7fe053de
2 changed files with 9 additions and 1 deletions

View File

@ -70,6 +70,8 @@ public class AbacusController implements PluginListener {
@FXML
private Button inputButton;
@FXML
private Button stopButton;
@FXML
private ComboBox<String> numberImplementationBox;
@FXML
private ListView<ToggleablePlugin> enabledPluginView;
@ -86,7 +88,6 @@ public class AbacusController implements PluginListener {
private ObservableList<String> numberImplementationOptions;
/**
* <<<<<<< HEAD
* The list of plugin objects that can be toggled on and off,
* and, when reloaded, get added to the plugin manager's black list.
*/
@ -192,6 +193,11 @@ public class AbacusController implements PluginListener {
inputField.setText("");
}
@FXML
private void performStop(){
System.out.println("Stopping");
}
@FXML
private void performSaveAndReload() {
performSave();

View File

@ -34,6 +34,8 @@
<TextField fx:id="inputField" onAction="#performCalculation"/>
<Button fx:id="inputButton" text="Calculate" maxWidth="Infinity"
onAction="#performCalculation"/>
<Button fx:id="stopButton" text="Stop" maxWidth="Infinity"
onAction="#performStop"/>
</VBox>
</bottom>
</BorderPane>