예제 #1
0
  private void btnLimpiarActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnLimpiarActionPerformed
    // TODO add your handling code here:
    System.out.println(profile.getProCode());

    formManager.setDefaultFormStatus();
    resultList = searchAll();
    fillTable(resultTable);
    formManager.setDefaultFormStatus();
    GeneralFunctions.resetProperties(profile);
  } // GEN-LAST:event_btnLimpiarActionPerformed
예제 #2
0
 private void btnBuscarActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnBuscarActionPerformed
   System.out.println(profile.getProStatus());
   resultList = profileBoundary.search(profile);
   fillTable(resultTable);
   formManager.updateButtonMenuState(UIConstants.BTN_BUSCAR);
 } // GEN-LAST:event_btnBuscarActionPerformed
예제 #3
0
  /** Creates new form ProfilesFrm */
  public ProfilesFrm(MainFrm paren) {

    initComponents();
    topFrame = paren;
    setLocationRelativeTo(null);
    setResizable(false);
    setTitle("Profiles");
    profileBoundary = new ProfileBoundary();
    MMBoundary = new MultiValueBoundary();
    resultList = searchAll();
    // Creamos mapa de componentes
    proStatus.addItem(new MultiValue(null, "Seleccionar..."));
    for (MultiValue obj :
        MMBoundary.findByType(new MultiValue(null, null, "GRL", null, null, null))) {
      proStatus.addItem(obj);
    }

    formManager = new FormManager();
    formManager.createComponentMaps(this);
    formManager.setDefaultFormStatus();
    fillTable(resultTable);

    resultTable.addMouseListener(
        new MouseAdapter() {
          @Override
          public void mouseClicked(MouseEvent e) {
            JTableDoubleClickListener.addDoubleCLick(
                e, profile, resultList, formManager.getFormComponentMap());
            if (e.getClickCount() == 2) {
              formManager.updateButtonMenuState(UIConstants.DOUBLE_CLICK);
            }
          }
        });
    this.setDefaultCloseOperation(this.DISPOSE_ON_CLOSE);
    proId.setVisible(false);
  }
예제 #4
0
 private void btnEditarActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnEditarActionPerformed
   // TODO add your handling code here:
   System.out.println("editar");
   formManager.updateButtonMenuState(UIConstants.BTN_EDITAR);
 } // GEN-LAST:event_btnEditarActionPerformed