Example usage for java.util.prefs PreferenceChangeEvent PreferenceChangeEvent

List of usage examples for java.util.prefs PreferenceChangeEvent PreferenceChangeEvent

Introduction

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

Prototype

public PreferenceChangeEvent(Preferences node, String key, String newValue) 

Source Link

Document

Constructs a new PreferenceChangeEvent instance.

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   w  ww  .  j  a  v a 2s. c o  m*/
    }
}