Search in sources :

Example 6 with SystemSettings

use of trial.SystemSettings in project project1-ICS372 by sandip-rai.

the class CheckBoxJsonAddReadings method itemStateChanged.

/* (non-Javadoc)
	 * @see java.awt.event.ItemListener#itemStateChanged(java.awt.event.ItemEvent)
	 */
@Override
public void itemStateChanged(ItemEvent e) {
    SystemSettings settings = guiController.getClinicalTrial().getSettings();
    Boolean addPatients = settings.jsonAddUnknownPatients();
    if (e.getStateChange() == 1 && addPatients) {
        // if JsonAddUnknownReadings was checked set the SystemSetting to true
        settings.setJsonAddUnknownReadings(true);
    } else {
        // if JsonAddUnknownReadings was unchecked set the SyStemSetting to false
        settings.setJsonAddUnknownReadings(false);
    }
}
Also used : SystemSettings(trial.SystemSettings)

Aggregations

SystemSettings (trial.SystemSettings)6 SystemSettingsView (gui.views.SystemSettingsView)1