Package groovy.util
Class ObservableSet.ElementEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
groovy.util.ObservableSet.ElementEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ObservableSet.ElementAddedEvent,ObservableSet.ElementClearedEvent,ObservableSet.ElementRemovedEvent,ObservableSet.MultiElementAddedEvent,ObservableSet.MultiElementRemovedEvent
- Enclosing class:
- ObservableSet<E>
Base event type for observable set content changes.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionElementEvent(Object source, Object oldValue, Object newValue, ObservableSet.ChangeType type) Creates an element 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
-
ElementEvent
Creates an element event.- Parameters:
source- the event sourceoldValue- 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
-