Class SimplePropertyEvent<S,D extends IDiff>
java.lang.Object
java.util.EventObject
org.eclipse.core.databinding.property.SimplePropertyEvent<S,D>
- Type Parameters:
D
- type of the diff handled by this eventS
- type of the source object handled by this event
- All Implemented Interfaces:
Serializable
Event object events in the properties API
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Event type constant indicating that the property changed.final D
If event == CHANGE, a diff object describing the change in state.final IProperty
The property on which the event took place.static final int
Event type constant indicating that the property became stale.final int
The type of property event that occurred.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionSimplePropertyEvent
(int type, S source, IProperty property, D diff) Constructs a PropertyChangeEvent with the given attributes. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
CHANGE
public static final int CHANGEEvent type constant indicating that the property changed. -
STALE
public static final int STALEEvent type constant indicating that the property became stale. -
type
public final int typeThe type of property event that occurred. -
property
The property on which the event took place. -
diff
If event == CHANGE, a diff object describing the change in state. If null then a diff for the resultingObservableEvent
will be generated by the framework. The generated diff will use a cached value as the old value and the result of applying the property to the source object as the new value.
-
-
Constructor Details
-
SimplePropertyEvent
Constructs a PropertyChangeEvent with the given attributes. Ifdiff
is null then a diff for the resultingObservableEvent
will be generated by the framework. The generated diff will use a cached value as the old value and the result of applying the property to the source object as the new value.- Parameters:
type
- the property typesource
- the property sourceproperty
- the property that changed on the sourcediff
- a diff describing the change in state, ornull
for an auto-generated diff
-
-
Method Details