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
public final class SimplePropertyEvent<S,D extends IDiff> extends EventObject
Event object events in the properties API- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CHANGE
Event type constant indicating that the property changedD
diff
If event == CHANGE, a diff object describing the change in state, or null for an unknown change.IProperty
property
The property on which the event took placestatic int
STALE
Event type constant indicating that the property became staleint
type
The type of property event that occured-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyEvent(int type, S source, IProperty property, D diff)
Constructs a PropertyChangeEvent with the given attributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
CHANGE
public static final int CHANGE
Event type constant indicating that the property changed
-
STALE
public static final int STALE
Event type constant indicating that the property became stale
-
type
public final int type
The type of property event that occured
-
property
public final IProperty property
The property on which the event took place
-
-
Constructor Detail
-
SimplePropertyEvent
public SimplePropertyEvent(int type, S source, IProperty property, D diff)
Constructs a PropertyChangeEvent with the given attributes- Parameters:
type
- the property typesource
- the property sourceproperty
- the property that changed on the sourcediff
- a diff describing the change in state, or null if the change is unknown or not applicable.
-
-