public void notifyLockInput(){
  if (!locked) {
synchronized (directorListeners) {
      IDirectorListener[] listeners=directorListeners.toArray(new IDirectorListener[directorListeners.size()]);
      for (      IDirectorListener directorListener : listeners) {
        if (directorListener != this)         directorListener.lockUserInput();
      }
    }
  }
  locked=true;
}

public void notifyLockInput ( ) { if ( ! locked ) { synchronized ( directorListeners ) { IDirectorListener [ ] listeners = directorListeners . toArray ( new IDirectorListener [ directorListeners . size ( ) ] ) ; for ( IDirectorListener directorListener : listeners ) { if ( directorListener != this ) directorListener . lockUserInput ( ) ; } } } locked = true ; }
notify listeners to prevent user input
