@Override
  public void actionPerformed(ActionEvent e) {
    JButton clicked = (JButton) e.getSource();
    if (clicked == abrirButton) {
      if (toolbarListener != null) {
        toolbarListener.abrirEventOccured();
      }
    } else if (clicked == guardarButton) {
      if (toolbarListener != null) {
        toolbarListener.saveEventOccured();
      }
    } else if (clicked == imprimirButton) {
      if (toolbarListener != null) {
        toolbarListener.printEventOccured();
      }
    } else if (clicked == preferenciasButton) {
      if (toolbarListener != null) {
        toolbarListener.prefEventOcurred();
      }
    } else if (clicked == rendoButton) {
      if (toolbarListener != null) {
        toolbarListener.rendoEventOcurred();
      }
    } else if (clicked == undoButton) {

      if (toolbarListener != null) {
        toolbarListener.undoEventOcurred();
      }
    } else if (clicked == limpiarButton) {

      if (toolbarListener != null) {
        toolbarListener.refreshEventOcurred();
      }
    }
  }