public void dispatch(final Dispatcher<L> dispatcher){
  isDispatching=true;
  try {
    for (int i=0, n=listeners.size(); i < n; i++) {
      dispatcher.dispatch(listeners.get(i));
    }
  }
  finally {
    isDispatching=false;
    addQueuedListeners();
    removeQueuedListeners();
  }
}

public void dispatch ( final Dispatcher < L > dispatcher ) { isDispatching = true ; try { for ( int i = 0 , n = listeners . size ( ) ; i < n ; i ++ ) { dispatcher . dispatch ( listeners . get ( i ) ) ; } } finally { isDispatching = false ; addQueuedListeners ( ) ; removeQueuedListeners ( ) ; } }
dispatches this event to all listeners .
