This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user