Example usage for java.util.prefs PreferenceChangeListener preferenceChange

List of usage examples for java.util.prefs PreferenceChangeListener preferenceChange

Introduction

In this page you can find the example usage for java.util.prefs PreferenceChangeListener preferenceChange.

Prototype

void preferenceChange(PreferenceChangeEvent evt);

Source Link

Document

This method gets called when a preference is added, removed or when its value is changed.

Usage

From source file:com.igormaznitsa.ideamindmap.facet.InMemoryPreferenceNode.java

private void firePreferenceListeners(final String key, final String newValue) {
    final PreferenceChangeEvent event = new PreferenceChangeEvent(this, key, newValue);
    for (final PreferenceChangeListener l : this.preferenceChangeListeners) {
        l.preferenceChange(event);
    }//from  www . j  a  v a2  s  .  co  m
}

From source file:au.org.ala.delta.editor.model.EditorDataModel.java

@Override
public void preferenceChange(PreferenceChangeEvent evt) {
    for (PreferenceChangeListener listener : _preferenceChangeListeners) {
        listener.preferenceChange(evt);
    }//from   www  .ja v a  2 s  . c o m
}