(Motherboard m)
| 76 | |
| 77 | ChangeListener<Boolean> runningPropertyListener = (prop, oldVal, newVal) -> runningProperty.set(newVal); |
| 78 | final public void setMotherboard(Motherboard m) { |
| 79 | if (motherboard != null && motherboard.isRunning()) { |
| 80 | motherboard.suspend(); |
| 81 | } |
| 82 | motherboard = m; |
| 83 | } |
| 84 | |
| 85 | public BooleanProperty getRunningProperty() { |
| 86 | return runningProperty; |