private void finishedDispatching(boolean dispatched){
  this.dispatched=dispatched;
  if (notifier != null) {
synchronized (notifier) {
      notifier.notifyAll();
    }
  }
  if (listener != null) {
    listener.run();
  }
}

private void finishedDispatching ( boolean dispatched ) { this . dispatched = dispatched ; if ( notifier != null ) { synchronized ( notifier ) { notifier . notifyAll ( ) ; } } if ( listener != null ) { listener . run ( ) ; } }
called when the event was dispatched or disposed
