Package org.eclipse.birt.core.preference
Class PreferenceChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.eclipse.birt.core.preference.PreferenceChangeEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class PreferenceChangeEvent extends java.util.EventObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SPECIALTODEFAULT
-
Constructor Summary
Constructors Constructor Description PreferenceChangeEvent(IPreferences node, java.lang.String key, java.lang.Object oldValue, java.lang.Object newValue)
Constructs a newPreferenceChangeEvent
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKey()
Returns the key of the preference that was changed.java.lang.Object
getNewValue()
Returns the new value for the preference.java.util.prefs.Preferences
getNode()
Returns the preference node that emitted the event.java.lang.Object
getOldValue()
-
-
-
Field Detail
-
SPECIALTODEFAULT
public static final java.lang.String SPECIALTODEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PreferenceChangeEvent
public PreferenceChangeEvent(IPreferences node, java.lang.String key, java.lang.Object oldValue, java.lang.Object newValue)
Constructs a newPreferenceChangeEvent
instance.- Parameters:
node
- The Preferences node that emitted the event.key
- The key of the preference that was changed.newValue
- The new value of the preference, or null if the preference is being removed.
-
-
Method Detail
-
getNode
public java.util.prefs.Preferences getNode()
Returns the preference node that emitted the event.- Returns:
- The preference node that emitted the event.
-
getKey
public java.lang.String getKey()
Returns the key of the preference that was changed.- Returns:
- The key of the preference that was changed.
-
getNewValue
public java.lang.Object getNewValue()
Returns the new value for the preference.- Returns:
- The new value for the preference, or null if the preference was removed.
-
getOldValue
public java.lang.Object getOldValue()
-
-