Package org.salamanca.ui

Source Code of org.salamanca.ui.AlumnoFrame_compomenteABMCListCursos_clickTableAdapter

package org.salamanca.ui;

import org.jdoinstruments.runtime.discfilemodel.util.DirectOID;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import java.awt.Font;
import componenteTabla.compomenteABMCList;
import java.awt.BorderLayout;
import javax.swing.border.TitledBorder;
import java.awt.Color;
import javax.swing.border.Border;
import java.util.Vector;
import java.text.SimpleDateFormat;
import org.salamanca.domain.Persona;
import org.salamanca.domain.Curso;
import java.util.Date;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.text.NumberFormat;
import java.text.*;
import componenteTabla.ClickTableEvent;
import componenteTabla.ClickTableListener;
import java.util.HashSet;
import org.salamanca.broker.*;
import org.salamanca.commands.alumno.InsertarAlumno;
import org.salamanca.domain.*;
import org.salamanca.broker.*;
import org.salamanca.commands.alumno.AnularAlumno;
import java.util.*;
import java.util.prefs.Preferences;
import org.salamanca.commands.CommandFactory;
import org.salamanca.commands.ICommand;
import org.salamanca.reportes.alumnosmorosos.AlumnosMorososListadoGeneral;
import org.salamanca.reportes.alumnosmorosos.ReporteMoraPorPersona;

/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class AlumnoFrame extends JInternalFrame {
    JButton jButtonAlumnosInstituto = new JButton();
    MainFrame mainFrame;
    JPanel jPanel1 = new JPanel();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JButton jButtonInscribir = new JButton();
    JPanel jPanel2 = new JPanel();
    JButton jButtonAnularInscripcion = new JButton();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    compomenteABMCList compomenteABMCListCursos = new
                                                  compomenteABMCList();
    compomenteABMCList compomenteABMCListAlumnos = new
            compomenteABMCList();
    BorderLayout borderLayout1 = new BorderLayout();
    BorderLayout borderLayout2 = new BorderLayout();
    TitledBorder titledBorder1 = new TitledBorder("");
    Border border1 = BorderFactory.createEmptyBorder();
    TitledBorder titledBorder2 = new TitledBorder("");
    Border border2 = BorderFactory.createEtchedBorder(Color.white,
            new Color(165, 163, 151));
    NumberFormat numberFormat = NumberFormat.getIntegerInstance();
    JFormattedTextField jFormattedTextFieldYear = new JFormattedTextField(
            numberFormat);
    NumberFormat numberFormat2 = NumberFormat.getIntegerInstance();
    JFormattedTextField jFormattedTextFieldDNI = new JFormattedTextField(
            numberFormat2);
    Curso ultimoCursoSeleccionado = null;
    JButton jButtonMostrarDeudas = new JButton();
    JCheckBox jCheckBoxVerificaSolapamiento = new JCheckBox();
    public AlumnoFrame(MainFrame mainFrame) {
        this.mainFrame = mainFrame;
        try {
            jbInit();
            loadTextFieldYear();
            this.loadListCursoYearSelected();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        jButtonAlumnosInstituto.setBounds(new Rectangle(444, 294, 122, 22));
        jButtonAlumnosInstituto.setFont(new java.awt.Font("Arial", Font.PLAIN,
                11));
        jButtonAlumnosInstituto.setBorder(BorderFactory.createRaisedBevelBorder());
        jButtonAlumnosInstituto.setText("Alumnos Instituto");
        jButtonAlumnosInstituto.addActionListener(new
                                                  AlumnoFrame_jButton1_actionAdapter(this));
        getContentPane().setLayout(null);
        this.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
        this.setResizable(true);
        this.setTitle("Inscribir Alumnos");
        this.addComponentListener(new AlumnoFrame_this_componentAdapter(this));
        jLabel1.setFont(new java.awt.Font("Arial", Font.PLAIN, 22));
        jLabel1.setText("Inscribir Alumnos");
        jLabel1.setBounds(new Rectangle(152, 14, 205, 23));
        jButtonInscribir.setBounds(new Rectangle(21, 294, 86, 22));
        jButtonInscribir.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
        jButtonInscribir.setText("Inscribir");
        jButtonInscribir.addActionListener(new
                                           AlumnoFrame_jButtonInscribir_actionAdapter(this));
        jLabel3.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
        jLabel3.setText("DNI alumno ");
        jLabel3.setBounds(new Rectangle(35, 266, 64, 15));
        jLabel2.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
        jLabel2.setText("A�o");
        jLabel2.setBounds(new Rectangle(317, 55, 33, 22));
        jPanel1.setLayout(borderLayout1);
        jPanel2.setLayout(borderLayout2);
        jFormattedTextFieldYear.setFont(new java.awt.Font("Arial", Font.PLAIN,
                14));
        jFormattedTextFieldYear.setBounds(new Rectangle(347, 55, 60, 23));
        jFormattedTextFieldYear.addKeyListener(new
                                               AlumnoFrame_jFormattedTextFieldYear_keyAdapter(this));
        compomenteABMCListCursos.addClickTableListener(new
                AlumnoFrame_compomenteABMCListCursos_clickTableAdapter(this));
        jFormattedTextFieldDNI.setFont(new java.awt.Font("Arial", Font.PLAIN,
                14));
        jFormattedTextFieldDNI.setBounds(new Rectangle(96, 258, 107, 23));
        jButtonAnularInscripcion.addActionListener(new
                AlumnoFrame_jButtonAnularInscripcion_actionAdapter(this));
        compomenteABMCListAlumnos.addClickTableListener(new
                AlumnoFrame_compomenteABMCListAlumnos_clickTableAdapter(this));
        jButtonMostrarDeudas.setBounds(new Rectangle(210, 257, 129, 23));
        jButtonMostrarDeudas.setText("Mostrar deudas");
        jButtonMostrarDeudas.addActionListener(new
                                               AlumnoFrame_jButtonMostrarDeudas_actionAdapter(this));
        jCheckBoxVerificaSolapamiento.setFont(new java.awt.Font("Arial",
                Font.PLAIN, 11));
        jCheckBoxVerificaSolapamiento.setToolTipText(
                "Verifica si ese alumno ya est� inscripto en otro curso que se dicta " +
                "en fechas que se solapan ");
        jCheckBoxVerificaSolapamiento.setSelected(true);
        jCheckBoxVerificaSolapamiento.setText("Verifica Solapamiento");
        jCheckBoxVerificaSolapamiento.setBounds(new Rectangle(115, 294, 161, 15));
        this.getContentPane().add(jLabel1);
        jLabel5.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
        jLabel5.setText("Alumnos del Curso");
        jLabel5.setBounds(new Rectangle(45, 321, 114, 16));
        jLabel4.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
        jLabel4.setText("Cursos");
        jLabel4.setBounds(new Rectangle(42, 69, 127, 17));
        jButtonAnularInscripcion.setBounds(new Rectangle(294, 294, 121, 22));
        jButtonAnularInscripcion.setFont(new java.awt.Font("Arial", Font.PLAIN,
                11));
        jButtonAnularInscripcion.setText("Anular Inscripcion");
        jPanel2.setBorder(BorderFactory.createEtchedBorder());
        jPanel2.setBounds(new Rectangle(4, 338, 572, 144));
        this.getContentPane().add(jPanel1);
        this.getContentPane().add(jLabel2);
        this.getContentPane().add(jLabel4);
        this.getContentPane().add(jPanel2);
        this.getContentPane().add(jLabel5);
        this.getContentPane().add(jLabel3);
        this.getContentPane().add(jFormattedTextFieldYear);
        this.getContentPane().add(jFormattedTextFieldDNI);
        this.getContentPane().add(jButtonMostrarDeudas);
        this.getContentPane().add(jButtonAlumnosInstituto, null);
        this.getContentPane().add(jButtonAnularInscripcion);
        this.getContentPane().add(jButtonInscribir);
        this.getContentPane().add(jCheckBoxVerificaSolapamiento);
        jPanel1.setBorder(BorderFactory.createEtchedBorder());
        jPanel1.setBounds(new Rectangle(4, 87, 572, 144));
        jPanel1.add(compomenteABMCListCursos, java.awt.BorderLayout.CENTER);
        jPanel2.add(compomenteABMCListAlumnos, java.awt.BorderLayout.CENTER); //------------------------ Alumnos
        compomenteABMCListAlumnos.setVisibleCantidadRegistros(true);
        compomenteABMCListAlumnos.setVisibleBuscar(true);
        compomenteABMCListAlumnos.setInfoColumna(new String[][] { {"nombre",
                                                 "tipo", "editable", "editor",
                                                 "val.Combo", "Ancho Columna"}
                                                 , {"Nombre", "String", "true",
                                                 "comun", "", "90"}
                                                 , {"Apellido", "String",
                                                 "true",
                                                 "comun", "", "90"}
                                                 , {"DNI", "Long", "true",
                                                 "comun",
                                                 "", "50"}
                                                 , {"Masculino", "Boolean",
                                                 "false",
                                                 "comun", "", "60"}
                                                 , {"Domicilio", "String",
                                                 "true",
                                                 "comun", "", "50"}
                                                 , {"Localidad", "String",
                                                 "true",
                                                 "comun", "", "50"}
                                                 , {"Codigo Postal", "String",
                                                 "true", "comun", "", "70"}
                                                 , {"Telefono", "String",
                                                 "true",
                                                 "comun", "", "50"}
                                                 , {"Fecha de Nacimiento",
                                                 "String",
                                                 "true", "comun", "", "180"}
        });
        compomenteABMCListAlumnos.setPrimaryKeyColumn(2); //es el DNI
        compomenteABMCListAlumnos.setVisibleAgregar(false);
        compomenteABMCListAlumnos.setVisibleOrdenar(false);
        compomenteABMCListAlumnos.setVisibleModificar(false);
        compomenteABMCListAlumnos.setVisibleImprimir(true);
        compomenteABMCListAlumnos.setVisibleGuardarComo(false);
        compomenteABMCListAlumnos.setVisibleHeaderTabla(true);
        compomenteABMCListAlumnos.setVisibleFiltrar(false);
        compomenteABMCListAlumnos.setVisibleEliminar(false);
        compomenteABMCListAlumnos.setVisibleCopyclipboard(true);
        compomenteABMCListAlumnos.setVisibleReportes(true);
        compomenteABMCListAlumnos.setEditableBoolean(false);
        compomenteABMCListAlumnos.setTituloImprimir("Alumnos del Curso ");

        //------------------------ Curso
        compomenteABMCListCursos.setVisibleCantidadRegistros(true);
        compomenteABMCListCursos.setVisibleBuscar(true);
        compomenteABMCListCursos.setInfoColumna(new String[][] { {"nombre",
                                                "tipo", "editable", "editor",
                                                "val.Combo", "Ancho Columna"}
                                                , {"Nombre", "String", "true",
                                                "comun", "", "240"}
                                                , {"Observaciones", "String",
                                                "true", "comun", "", "240"}
                                                , {"Cantidad de Periodos",
                                                "Integer", "true", "comun", "2",
                                                "110"}
                                                , {"Fecha de Inicio", "String",
                                                "true", "comun", "", "100"}
                                                , {"Fecha de Finalizacion",
                                                "String", "true", "comun", "",
                                                "110"}, {"oid", "String",
                                                "false", "comun", "", "1"}
        });

        compomenteABMCListCursos.setVisibleAgregar(false);
        compomenteABMCListCursos.setVisibleOrdenar(false);
        compomenteABMCListCursos.setVisibleModificar(false);
        compomenteABMCListCursos.setVisibleImprimir(true);
        compomenteABMCListCursos.setVisibleGuardarComo(false);
        compomenteABMCListCursos.setVisibleHeaderTabla(true);
        compomenteABMCListCursos.setVisibleFiltrar(false);
        compomenteABMCListCursos.setVisibleEliminar(false);
        compomenteABMCListCursos.setVisibleCopyclipboard(true);
        compomenteABMCListCursos.setVisibleReportes(true);

        compomenteABMCListCursos.setTituloImprimir("Curso ");

    }


    private void loadTextFieldYear() {

        String yearStr = BrokerServer.instance().getYearPreference();
        String a�oPreferencia = numberFormat.format(Long.valueOf(yearStr));
        this.jFormattedTextFieldYear.setText(a�oPreferencia);
    }


    private void actualizarTodoSiA�oGlobalDiferente() { /*este metodo
             es para el caso en que se est� acmbiando de a�o para
          evitar que inscriban en un a�o cuando estan definiendo
         otro basicamente se setea el a�o global que se usa por
         las preferencias*/

        String yearStr = BrokerServer.instance().getYearPreference();
         String a�oPreferencia = numberFormat.format(Long.valueOf(yearStr));

         if (!this.jFormattedTextFieldYear.getText().equals(a�oPreferencia)) {
             loadTextFieldYear();
             this.loadListCursoYearSelected();

         }
     }

    /**
     * loadList
     */
    private void loadListCursos(int year) {
        try {

            GregorianCalendar calMin = new GregorianCalendar(year, 0, 1);
            GregorianCalendar calMax = new GregorianCalendar(year, 11, 31);

            Date dateMin = calMin.getTime();
            Date dateMax = calMax.getTime();

            compomenteABMCListCursos.clearDatos();

            Vector v = org.salamanca.broker.BrokerServer.instance().
                       queryParameter(
                               Curso.class, "import java.util.Date",
                               "java.util.Date dateMin, java.util.Date dateMax",
                               "fechaInicio>=dateMin && fechaInicio<=dateMax",
                               dateMin, dateMax);
            if ((v != null) && (v.size() > 0)) {
                Object[][] trabajo = new Object[v.size()][6];
                for (int i = 0; i < v.size(); i++) {
                    Curso curso = (Curso) v.elementAt(i);
                    trabajo[i][0] = curso.getNombre();
                    trabajo[i][1] = curso.getObservaciones();
                    SimpleDateFormat dateFormatInicio = new SimpleDateFormat(
                            "d-M-yyyy");
                    trabajo[i][2] = Integer.valueOf(curso.getCantidadPeriodos());
                    trabajo[i][3] = dateFormatInicio.format(curso.
                            getFechaInicio());
                    trabajo[i][4] = dateFormatInicio.format(curso.
                            getFechaFinalizacion());
                    trabajo[i][5] = javax.jdo.JDOHelper.
                                    getObjectId(curso).toString();
                }
                compomenteABMCListCursos.setDatos(trabajo);
            }
        }

        catch (Exception ex) {
            ex.printStackTrace();
        }

    }


    void jButton1_actionPerformed(ActionEvent e) {
        this.setVisible(false);

        mainFrame.personaFrame.show();

    }

    public void jFormattedTextFieldYear_keyPressed(KeyEvent e) {
        if (e.getKeyCode() == e.VK_ENTER) {

            loadListCursoYearSelected();
        }
    }

    private void loadListCursoYearSelected() throws HeadlessException {
        try {
            int year = numberFormat.parse(this.jFormattedTextFieldYear.
                                          getText()).
                       intValue();
            BrokerServer.instance().setYearPreference(year);

            this.loadListCursos(year);
        } catch (ParseException ex) {
            JOptionPane.showMessageDialog(this, "Fecha erronea");
        }
        this.jFormattedTextFieldDNI.setText(""); //cada vez que seteo el a�o limpio todo
        compomenteABMCListAlumnos.clearDatos();
    }

    /**
     * compomenteABMCListCursos_ClickTable
     *
     * @param e ClickTableEvent
     */
    public void compomenteABMCListCursos_ClickTable(ClickTableEvent e) {
        loadListAlumnosCursoSelected();
    }

    private void loadListAlumnosCursoSelected() {
        if (compomenteABMCListCursos.getSelectedRow() != -1) {
            String oidStr = ((String) compomenteABMCListCursos.
                             getSelectedRowData().
                             getValueAt(5));
            kodo.util.Id oid = new kodo.util.Id(oidStr);
            Curso curso = (Curso) org.salamanca.broker.BrokerServer.instance().
                          getPMF().getPersistenceManager().getObjectById(oid, true);
            ultimoCursoSeleccionado = curso; //lo uso luego para anotar alumnos
            loadListAlumnoDeCurso(curso);
        }
    }

    /**
     * loadListAlumnoDeCurso
     *
     * @param curso Curso
     */
    private void loadListAlumnoDeCurso(Curso curso) {
        if (curso != null) {
            try {

                //actualizo el curso
                curso = (Curso) BrokerServer.instance().getPMF().
                        getPersistenceManager().getObjectById(javax.jdo.
                        JDOHelper.getObjectId(curso), true);

                Vector v = new Vector();
                Iterator iter = curso.getSetAlumnos().iterator();
                while (iter.hasNext()) {
                    Alumno itemAlumno = (Alumno) iter.next();

                    if (itemAlumno != null && itemAlumno.isHabilitado()) { //solo se muestran los alumnos habilitados
                        //en caso de una base reparada el alumno puede estar null
                        v.add(itemAlumno);
                    }
                }

                compomenteABMCListAlumnos.clearDatos();
                if (v.size() > 0) {
                    Object[][] trabajo = new Object[v.size()][9];
                    for (int i = 0; i < v.size(); i++) {
                        Alumno alumno = (Alumno) v.elementAt(i);
                        Persona persona = alumno.getPersona();
                        trabajo[i][0] = persona.getNombre();
                        trabajo[i][1] = persona.getApellido();
                        trabajo[i][2] = new Long(persona.getDni());
                        trabajo[i][3] = new Boolean(persona.isMasculino());
                        trabajo[i][4] = persona.getDomicilio();
                        trabajo[i][5] = persona.getLocalidad();
                        trabajo[i][6] = persona.getCodigoPostal();
                        trabajo[i][7] = persona.getTelefono();
                        SimpleDateFormat dateFormatInicio = new
                                SimpleDateFormat(
                                        "d-M-yyyy");
                        trabajo[i][8] = dateFormatInicio.format(persona.
                                getFechaNacimiento());
                    }
                    compomenteABMCListAlumnos.setDatos(trabajo);
                }
            }

            catch (Exception ex) {
                ex.printStackTrace();
            }
        }
    }

    /**
     * jButtonInscribir_actionPerformed
     *
     * @param e ActionEvent
     */
    public void jButtonInscribir_actionPerformed(ActionEvent e) {
        long dni = 0;
        try {
            dni = numberFormat.parse(this.jFormattedTextFieldDNI.
                                     getText()).longValue();
        } catch (ParseException ex) {
            JOptionPane.showMessageDialog(this, "DNI erroneo");
            return;
        }
        Persona persona = null;
        Vector v = BrokerServer.instance().query(Persona.class, "dni==" + dni);
        if (v.size() > 0) {
            persona = (Persona) v.firstElement();
        }
        if (persona != null && ultimoCursoSeleccionado != null) {
            if(this.jCheckBoxVerificaSolapamiento.isSelected()){
                comrroborarNoSolapamientoDeCursos(persona); //verifica que no est� inscripto en un curso en ese mismo periodo
            }
            ICommand insertarAlumno = CommandFactory.createInsertarAlumno(
                    ultimoCursoSeleccionado,
                    persona);
            try {
                insertarAlumno.execute();
            } catch (Exception ex1) {
                JOptionPane.showMessageDialog(this, ex1.getMessage());
            }

        }
        loadListAlumnoDeCurso(ultimoCursoSeleccionado);
    }


    /**
     * comrroborarNoSolapamientoDeCursos
     * este metodo verifica si la persona ya est� inscripta en otro curso en un periodo en el cual se solapan
     */
    private void comrroborarNoSolapamientoDeCursos(Persona persona){

        Iterator iter = persona.getSetAlumno().iterator();
        while (iter.hasNext()) {
            Alumno itemAlumno = (Alumno) iter.next();
          if(itemAlumno.isHabilitado()){
              if (itemAlumno.getCurso().isSolapa(ultimoCursoSeleccionado)) {
                  JOptionPane.showMessageDialog(this,
                                                "Solapamiento con el curso: " +
                                                itemAlumno.getCurso().getNombre());
              }
          }
        }


    }



    /**
     * jButtonAnularInscripcion_actionPerformed
     *
     * @param e ActionEvent
     */
    public void jButtonAnularInscripcion_actionPerformed(ActionEvent e) {
        long dni = 0;
        try {
            dni = numberFormat.parse(this.jFormattedTextFieldDNI.
                                     getText()).longValue();
        } catch (ParseException ex) {
            JOptionPane.showMessageDialog(this, "DNI erroneo");
            return;
        }
        Persona persona = null;
        Vector v = BrokerServer.instance().query(Persona.class, "dni==" + dni);
        if (v.size() > 0) {
            persona = (Persona) v.firstElement();
        }
        if (persona != null && ultimoCursoSeleccionado != null) {
            ICommand anularAlumno = CommandFactory.createAnularAlumno(
                    ultimoCursoSeleccionado,
                    persona);
            try {
                anularAlumno.execute();
            } catch (Exception ex1) {
                JOptionPane.showMessageDialog(this, ex1.getMessage());
            }

        }
        loadListAlumnoDeCurso(ultimoCursoSeleccionado);
    }

    public void compomenteABMCListAlumnos_ClickTable(ClickTableEvent e) {

    }

    public void this_componentShown(ComponentEvent e) {

        this.loadListAlumnosCursoSelected();
        actualizarTodoSiA�oGlobalDiferente();
    }

    public void jButtonMostrarDeudas_actionPerformed(ActionEvent e) {

        Persona persona = null;
        long dni = 0;
        try {
            dni = numberFormat.parse(this.jFormattedTextFieldDNI.
                                     getText()).longValue();
        } catch (ParseException ex) {
            JOptionPane.showMessageDialog(this, "DNI erroneo");
            return;
        }

        Vector v = BrokerServer.instance().query(Persona.class, "dni==" + dni);
        if (v.size() > 0) {
            persona = (Persona) v.firstElement();
        }

        String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
                                                 BrokerServer.instance().
                                                 getYearPreference());
        int a�o = 0;
        int mes = 0;

        try {
            a�o = Integer.parseInt(str);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, "A�o incorrecto");
            return;
        }
        str = JOptionPane.showInputDialog(this,
                                          "Ingrese el mes hasta el cual se exigiran los pagos",
                                          "1");
        try {
            mes = Integer.parseInt(str);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, "Mes incorrecto");
            return;
        }

        ReporteMoraPorPersona reporteAlumnosMorosos =
                new ReporteMoraPorPersona();
        reporteAlumnosMorosos.setA�o(a�o);
        reporteAlumnosMorosos.setMes(mes);
        reporteAlumnosMorosos.setPersona(persona);

        reporteAlumnosMorosos.display();
    }
}


class AlumnoFrame_jButtonMostrarDeudas_actionAdapter implements ActionListener {
    private AlumnoFrame adaptee;
    AlumnoFrame_jButtonMostrarDeudas_actionAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButtonMostrarDeudas_actionPerformed(e);
    }
}


class AlumnoFrame_this_componentAdapter extends ComponentAdapter {
    private AlumnoFrame adaptee;
    AlumnoFrame_this_componentAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void componentShown(ComponentEvent e) {
        adaptee.this_componentShown(e);
    }
}


class AlumnoFrame_compomenteABMCListAlumnos_clickTableAdapter implements
        ClickTableListener {
    private AlumnoFrame adaptee;
    AlumnoFrame_compomenteABMCListAlumnos_clickTableAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void ClickTable(ClickTableEvent e) {
        adaptee.compomenteABMCListAlumnos_ClickTable(e);
    }
}


/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
class AlumnoFrame_jButtonAnularInscripcion_actionAdapter implements
        ActionListener {
    private AlumnoFrame adaptee;
    AlumnoFrame_jButtonAnularInscripcion_actionAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButtonAnularInscripcion_actionPerformed(e);
    }
}


class AlumnoFrame_jButtonInscribir_actionAdapter implements ActionListener {
    private AlumnoFrame adaptee;
    AlumnoFrame_jButtonInscribir_actionAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButtonInscribir_actionPerformed(e);
    }
}


class AlumnoFrame_compomenteABMCListCursos_clickTableAdapter implements
        ClickTableListener {
    private AlumnoFrame adaptee;
    AlumnoFrame_compomenteABMCListCursos_clickTableAdapter(AlumnoFrame
            adaptee) {
        this.adaptee = adaptee;
    }

    public void ClickTable(ClickTableEvent e) {
        adaptee.compomenteABMCListCursos_ClickTable(e);
    }
}


class AlumnoFrame_jFormattedTextFieldYear_keyAdapter extends KeyAdapter {
    private AlumnoFrame adaptee;
    AlumnoFrame_jFormattedTextFieldYear_keyAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void keyPressed(KeyEvent e) {
        adaptee.jFormattedTextFieldYear_keyPressed(e);
    }
}


class AlumnoFrame_jButton1_actionAdapter implements java.awt.event.
        ActionListener {
    AlumnoFrame adaptee;

    AlumnoFrame_jButton1_actionAdapter(AlumnoFrame adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton1_actionPerformed(e);
    }
}
TOP

Related Classes of org.salamanca.ui.AlumnoFrame_compomenteABMCListCursos_clickTableAdapter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.