()
| 78 | private final ObservableList<State> snapshotList = FXCollections.observableArrayList(); |
| 79 | |
| 80 | public MetaCheat() { |
| 81 | addNumericValidator(startAddressProperty); |
| 82 | addNumericValidator(endAddressProperty); |
| 83 | addNumericValidator(searchValueProperty); |
| 84 | addNumericValidator(changeByProperty); |
| 85 | startAddressProperty.addListener((prop, oldVal, newVal) -> { |
| 86 | startAddress = Math.max(0, Math.min(65535, parseInt(newVal))); |
| 87 | }); |
| 88 | endAddressProperty.addListener((prop, oldVal, newVal) -> { |
| 89 | endAddress = Math.max(0, Math.min(65535, parseInt(newVal))); |
| 90 | }); |
| 91 | } |
| 92 | |
| 93 | private void addNumericValidator(StringProperty stringProperty) { |
| 94 | stringProperty.addListener((ObservableValue<? extends String> prop, String oldVal, String newVal) -> { |
nothing calls this directly
no test coverage detected