public void viewEventHandler(ViewEvent event) {
    switch (event.getID()) {
      case ViewEvent.TEMPO_CHANGE:
        sendNotification(SeqNotifications.UPDATE_TEMPO, getView().getTempoValue());
        break;

      case ViewEvent.PLAYBACK_CHANGE:
        sendNotification(SeqNotifications.CHANGE_PLAYBACK, getView().getPlayButtonState());
        break;

      case ViewEvent.ALL_NOTES_OFF:
        sendNotification(SeqNotifications.SEND_MIDI_ALL_NOTES_OFF);
        break;

        // case ViewEvent.MIDI_IN_DEVICE_SELECT:
        // sendNotification ( SeqNotifications.OPEN_MIDI_IN_DEVICE, getView (
        // ).getMidiInSelectedItem ( ) );
        // break;

      case ViewEvent.MIDI_OUT_DEVICE_SELECT:
        sendNotification(SeqNotifications.OPEN_MIDI_OUT_DEVICE, getView().getMidiOutSelectedItem());
        break;

      case ViewEvent.MIDI_CHECKBOX_SELECT:
        sendNotification(
            SeqNotifications.ENABLE_MIDI_OUT_DEVICE, ((JCheckBox) event.getSource()).isSelected());
        break;

      case ViewEvent.OSC_CHECKBOX_SELECT:
        sendNotification(
            SeqNotifications.ENABLE_OSC_DEVICE, ((JCheckBox) event.getSource()).isSelected());
        break;

      case ViewEvent.OSC_PORT_CHANGE:
        sendNotification(
            SeqNotifications.UPDATE_OSC_PORT,
            Integer.parseInt(((JTextField) event.getSource()).getText()));
        break;

      default:
        System.out.println("ControlsMediator - Unhandled ViewEvent with id: " + event.getID());
        break;
    }
  }