Code example for PropertyChangeSupport

Methods: removePropertyChangeListener

0
    public void addListener(String name, PropertyChangeListener listener) {
        propSupport.addPropertyChangeListener(name, listener);
    } 
 
    public void removeListener(String name, PropertyChangeListener listener) {
        propSupport.removePropertyChangeListener(name, listener);
    } 
 
    public void destroyPreferences() { 
        try { 
            getPreferences().removeNode();
        } catch (BackingStoreException e) {
            log.error("Failed to destroy app settings", e);
        } 
    } 
 
    public void dump() { 
        log.debug("--- Application Settings ---"); 
        try { 
            for (String key : applicationPreferences.keys()) {
                log.debug(String.format("  %s: %s", key, applicationPreferences.get(key, "[none]")));