Пример #1
0
        private void notifyPreferenceChange(String key, String newValue)
        {
            PreferenceChangeEvent pce = new PreferenceChangeEvent(this, key,
                                                                  newValue);

            lock (events) {
                events.add(pce);
                events.notifyAll();
            }
        }
Пример #2
0
 private void dispatchPrefChange(PreferenceChangeEvent eventJ,
                                 List <EventListener> preferenceChangeListeners)
 {
     lock (preferenceChangeListeners) {
         Iterator <EventListener> i = preferenceChangeListeners
                                      .iterator();
         while (i.hasNext())
         {
             PreferenceChangeListener pcl = (PreferenceChangeListener)i
                                            .next();
             pcl.preferenceChange(eventJ);
         }
     }
 }
Пример #3
0
 private void dispatchPrefChange(PreferenceChangeEvent eventJ,
     List<EventListener> preferenceChangeListeners)
 {
     lock (preferenceChangeListeners) {
     Iterator<EventListener> i = preferenceChangeListeners
             .iterator();
     while (i.hasNext()) {
         PreferenceChangeListener pcl = (PreferenceChangeListener) i
                 .next();
         pcl.preferenceChange(eventJ);
     }
     }
 }
Пример #4
0
 private void notifyPreferenceChange(String key, String newValue)
 {
     PreferenceChangeEvent pce = new PreferenceChangeEvent(this, key,
         newValue);
     lock (events) {
     events.add(pce);
     events.notifyAll();
     }
 }