This commit is contained in:
gac-iss
2023-01-18 15:57:10 +01:00
parent 3eaec47c25
commit d932909a42

View File

@@ -34,6 +34,18 @@ public final class ScientaParametersPanel extends DevicePanel {
model.addElement(energy);
}
comboPass.setModel(model);
valueTime.addListener((ValueSelection origin, double value, boolean editing) -> {
if (editing) {
try{
int val_ms = (int) (((Double) value) * 1000);
if ((val_ms % 40) != 0){
throw new IOException("Value must be multiple of 40ms");
}
} catch (Exception ex) {
showException(ex);
}
}
});
}
@Override