|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.core.runtime.Preferences.PropertyChangeEvent
public static class Preferences.PropertyChangeEvent
An event object describing a change to a named property.
The preferences object reports property change events for internal state
changes that may be of interest to external parties. A special listener
interface (Preferences.IPropertyChangeListener
) is
defined for this purpose. Listeners are registered via the
Preferences.addPropertyChangeListener
method.
Clients cannot instantiate or subclass this class.
Preferences.addPropertyChangeListener(Preferences.IPropertyChangeListener)
,
Preferences.IPropertyChangeListener
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
protected |
Preferences.PropertyChangeEvent(java.lang.Object source,
java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a new property change event. |
Method Summary | |
---|---|
java.lang.Object |
getNewValue()
Returns the new value of the property. |
java.lang.Object |
getOldValue()
Returns the old value of the property. |
java.lang.String |
getProperty()
Returns the name of the property that changed. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Preferences.PropertyChangeEvent(java.lang.Object source, java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
source
- the object whose property has changedproperty
- the property that has changed (must not be
null
)oldValue
- the old value of the property, or
null
if nonenewValue
- the new value of the property, or
null
if noneMethod Detail |
---|
public java.lang.String getProperty()
Warning: there is no guarantee that the property name returned
is a constant string. Callers must compare property names using
equals
, not ==.
public java.lang.Object getNewValue()
null
if not known
or not relevantpublic java.lang.Object getOldValue()
null
if not known
or not relevant
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |