Ejemplo n.º 1
0
  /**
   * Notifies all the ProgramEventListeners on a change in the VM's program by creating a
   * ProgramEvent (with the new event type and program's file name) and sending it using the
   * programChanged function to all the listeners.
   */
  protected void notifyProgramListeners(byte eventType, String programFileName) {
    ProgramEvent event = new ProgramEvent(this, eventType, programFileName);

    for (int i = 0; i < listeners.size(); i++) {
      ((ProgramEventListener) listeners.elementAt(i)).programChanged(event);
    }
  }