Class ComparisonEvent

java.lang.Object
com.deltawalker.script.ComparisonEvent

public class ComparisonEvent extends Object
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 Details

    • ComparisonEvent

      public ComparisonEvent(Comparison.State state, Comparison source)
      Creates an event. Events are created by DeltaWalker; scripts do not need to create them.
      Parameters:
      state - the new state of the comparison
      source - the comparison whose state changed
  • Method Details

    • getState

      public Comparison.State getState()
      Returns the new state of the comparison that raised the event.
      Returns:
      the comparison state
      Since:
      2.0
    • getSource

      public Comparison getSource()
      Returns the comparison that raised this event.
      Returns:
      the comparison that was the source of this event
      Since:
      2.0