Package com.deltawalker.script
Class ComparisonEvent
java.lang.Object
com.deltawalker.script.ComparisonEvent
An event delivered to a
ComparisonListener when the state of a
comparison changes, for instance when a comparison starts or ends.
Listeners are a legacy mechanism. New scripts should await the
operation they are interested in instead; see ScriptOperation.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonEvent(Comparison.State state, Comparison source) Creates an event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the comparison that raised this event.getState()Returns the new state of the comparison that raised the event.
-
Constructor Details
-
ComparisonEvent
Creates an event. Events are created by DeltaWalker; scripts do not need to create them.- Parameters:
state- the new state of the comparisonsource- the comparison whose state changed
-
-
Method Details
-
getState
Returns the new state of the comparison that raised the event.- Returns:
- the comparison state
- Since:
- 2.0
-
getSource
Returns the comparison that raised this event.- Returns:
- the comparison that was the source of this event
- Since:
- 2.0
-