mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-18 00:19:32 -08:00
Add a stop button.
This commit is contained in:
parent
37a759288a
commit
4f7fe053de
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user