use of net.sf.mzmine.parameters.parametertypes.MassListComponent in project mzmine2 by mzmine.
the class MSMSLibrarySubmissionWindow method addListener.
private void addListener() {
// listen for changes in masslist selection and preprocessing
MassListComponent mc = getMassListComponent();
mc.addDocumentListener(new DelayedDocumentListener(e -> updateSettingsOnAllSelectors()));
DoubleComponent nc = getNoiseLevelComponent();
nc.addDocumentListener(new DelayedDocumentListener(e -> updateSettingsOnAllSelectors()));
IntegerComponent minc = getMinSignalComponent();
minc.addDocumentListener(new DelayedDocumentListener(e -> updateSettingsOnAllSelectors()));
ComboComponent<ScanSortMode> sortc = getComboSortMode();
sortc.addItemListener(e -> updateSortModeOnAllSelectors());
IntegerComponent mslevel = getMSLevelComponent();
mslevel.addDocumentListener(new DelayedDocumentListener(e -> {
updateParameterSetFromComponents();
Integer level = paramMeta.getParameter(LibraryMetaDataParameters.MS_LEVEL).getValue();
setFragmentScan(level != null && level > 1);
}));
}
Aggregations