The PreferenceCtrl interface provides access to change a preference and its attributes.
PreferenceCtrl
This interface defines the controller as known from the MVC pattern. Its purpose is to provide write access to the data stored in the model.
321322323324325326327328329330331332
// transfer changings Preference preference = preferences.get(key); if (preference != null) { // change preference PreferenceCtrl preferenceCtrl = (PreferenceCtrl)ControllerObjectAccess.get(preference); preferenceCtrl.setValues(newValues); } else { // add new preference preferencesCtrl.add(key, newValues);