Package clips.delegate.report

Examples of clips.delegate.report.DiseaseReportLocal


    tReportList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

      @Override
      public void valueChanged(ListSelectionEvent e) {
        int        row = tReportList.getSelectedRowSorted();
        DiseaseReportLocal  newReport = null;
        if (row >= 0 && row < tReportListModel.getRowCount()) {
          newReport = tReportListModel.get(row);
        }
        if (setPanelReport(newReport, true)){
          return;
View Full Code Here


        add(tpReportTabs, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

private void bAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAddActionPerformed
  DiseaseReportLocal      newR = new DiseaseReportLocal(getAuditManager());
  if (setPanelReport(null, true)){
    tReportListModel.add(newR);
    tReportList.setRowSelectionInterval(tReportListModel.getRowCount() - 1, tReportListModel.getRowCount() - 1);
  }
}//GEN-LAST:event_bAddActionPerformed
View Full Code Here

  }

  public void remove(){
    if (curReport != null){
      if (curReport.isNewlyCreated()){
        DiseaseReportLocal    tmp = curReport;
        setPanelReport(null, false);
        tReportListModel.remove(tmp);
      }
      else {
        int    res = MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT);
        if (res == MessageBox.ANSWER_YES){
          try {
            DiseaseReportLocal tmp = curReport;
            setPanelReport(null, false);
            tmp.remove();
            tReportListModel.remove(tmp);
          } catch (ClipsException ex) {
            MessageBox.showException(ex);
          }
        }
View Full Code Here

    }*/
  }

  @Override
  public void restore() {
    DiseaseReportLocal rep = curReport;
    setPanelReport(null, true);
    setPanelReport(rep, false);
  }
View Full Code Here

TOP

Related Classes of clips.delegate.report.DiseaseReportLocal

Copyright © 2018 www.massapicom. 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.