1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-10-01 18:53:59 -07: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 @FXML
private Button inputButton; private Button inputButton;
@FXML @FXML
private Button stopButton;
@FXML
private ComboBox<String> numberImplementationBox; private ComboBox<String> numberImplementationBox;
@FXML @FXML
private ListView<ToggleablePlugin> enabledPluginView; private ListView<ToggleablePlugin> enabledPluginView;
@ -86,7 +88,6 @@ public class AbacusController implements PluginListener {
private ObservableList<String> numberImplementationOptions; private ObservableList<String> numberImplementationOptions;
/** /**
* <<<<<<< HEAD
* The list of plugin objects that can be toggled on and off, * The list of plugin objects that can be toggled on and off,
* and, when reloaded, get added to the plugin manager's black list. * and, when reloaded, get added to the plugin manager's black list.
*/ */
@ -192,6 +193,11 @@ public class AbacusController implements PluginListener {
inputField.setText(""); inputField.setText("");
} }
@FXML
private void performStop(){
System.out.println("Stopping");
}
@FXML @FXML
private void performSaveAndReload() { private void performSaveAndReload() {
performSave(); performSave();

View File

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