Package groovy.util
Class ObservableMap.PropertyEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
groovy.util.ObservableMap.PropertyEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ObservableMap.MultiPropertyEvent,ObservableMap.PropertyAddedEvent,ObservableMap.PropertyClearedEvent,ObservableMap.PropertyRemovedEvent,ObservableMap.PropertyUpdatedEvent
- Enclosing class:
- ObservableMap
Base event type for observable map changes.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPropertyEvent(Object source, String propertyName, Object oldValue, Object newValue, ObservableMap.ChangeType type) Creates a property event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the specialized event type.intgetType()Returns the specialized event type ordinal.Returns the specialized event type name.Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toStringMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
PropertyEvent
public PropertyEvent(Object source, String propertyName, Object oldValue, Object newValue, ObservableMap.ChangeType type) Creates a property event.- Parameters:
source- the event sourcepropertyName- the affected property nameoldValue- the previous value payloadnewValue- the new value payloadtype- the specialized change type
-
-
Method Details
-
getType
public int getType()Returns the specialized event type ordinal.- Returns:
- the change type ordinal
-
getChangeType
Returns the specialized event type.- Returns:
- the change type
-
getTypeAsString
Returns the specialized event type name.- Returns:
- the change type name
-