示例#1
0
  public UIUnidad(IUnidad interfaz) {
    initComponents();
    this.setVisible(true);
    this.setTitle("MANTENIMIENTO DE UNIDAD");
    setLocationRelativeTo(null);

    this.interfaz = interfaz;
    interfaz.cargar(tblRegistros);

    cellSelectionModel = tblRegistros.getSelectionModel();
    cellSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    cellSelectionModel.addListSelectionListener(
        new ListSelectionListener() {
          @Override
          public void valueChanged(ListSelectionEvent e) {
            interfaz.actualizarEst(tblRegistros, chActivar);
          }
        });
    interfaz.buscarUnidad(txtBuscar, tblRegistros);
  }
示例#2
0
 private void searchActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_searchActionPerformed
   interfaz.seleccionarFila(txtBuscar, tblRegistros);
 } // GEN-LAST:event_searchActionPerformed
示例#3
0
 private void formWindowClosing(
     java.awt.event.WindowEvent evt) // GEN-FIRST:event_formWindowClosing
     { // GEN-HEADEREND:event_formWindowClosing
   interfaz.menu();
 } // GEN-LAST:event_formWindowClosing
示例#4
0
 private void chActivarActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_chActivarActionPerformed
     { // GEN-HEADEREND:event_chActivarActionPerformed
   interfaz.activarDesactivar(tblRegistros, chActivar);
 } // GEN-LAST:event_chActivarActionPerformed
示例#5
0
 private void btnModificarActionPerformed(
     java.awt.event.ActionEvent evt) // GEN-FIRST:event_btnModificarActionPerformed
     { // GEN-HEADEREND:event_btnModificarActionPerformed
   interfaz.modificar(tblRegistros);
 } // GEN-LAST:event_btnModificarActionPerformed
示例#6
0
 private void btnMenuActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnMenuActionPerformed
   interfaz.menu();
 } // GEN-LAST:event_btnMenuActionPerformed
示例#7
0
 private void btnInsertarActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnInsertarActionPerformed
   interfaz.insertar();
 } // GEN-LAST:event_btnInsertarActionPerformed