Code example for PreferenceChangeEvent

Methods: getKey, getNewValue, getNode, getSource