Package clips.delegate.doctor.checkup

Examples of clips.delegate.doctor.checkup.CheckupDICOMLocal


            DialogSelectDicomObjects dsdo = new DialogSelectDicomObjects(MainWindow.mainWindow);
            dsdo.setVisible(true);
            if (dsdo.getDlgResult() == ModalDialog.DLG_OK) {
                List<AgregatorItem> items = dsdo.getItems();
                for (AgregatorItem agregatorItem : items) {
                    checkup.addChild(new CheckupDICOMLocal(checkup, agregatorItem));
                }
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here


                list = new ArrayList<CheckupDICOMLocal>();
            } else {
                list = checkup.getChildren();
            }
            for (int i = 0; i < list.size(); i++) {
                CheckupDICOMLocal cdl = list.get(i);
                boolean founded = false;
                for (int j = 0; j < modelCDL.getSize(); j++) {
                    CheckupDICOMLocal cdl1 = (CheckupDICOMLocal) modelCDL.getElementAt(j);
                    if (cdl1 == cdl) {
                        founded = true;
                    }
                }
                if (!founded) {
                    modelCDL.addElement(cdl);
                }
            }
            for (int i = modelCDL.getSize() - 1; i >= 0; i--) {
                CheckupDICOMLocal cdl1 = (CheckupDICOMLocal) modelCDL.get(i);
                boolean founded = false;
                for (int j = 0; j < list.size(); j++) {
                    CheckupDICOMLocal cdl = list.get(j);
                    if (cdl == cdl1) {
                        founded = true;
                    }
                }
                if (!founded) {
View Full Code Here

private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
    try {
        AgregatorItem item = (AgregatorItem) jListAgregator.getSelectedValue();
        if (item != null) {
            CheckupDICOMLocal cdl = new CheckupDICOMLocal(checkup, item);
            Agregator.removeItem(item);
        }
        //refreshItemListAgregator(); пнется листенером
        refreshItemListCheckup();
    getContainer().contentStateChanged();
View Full Code Here

}//GEN-LAST:event_btAddActionPerformed

private void btRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRemoveActionPerformed
    try {
        CheckupDICOMLocal cdl = (CheckupDICOMLocal) jListCheckup.getSelectedValue();
        if (cdl != null) {
            AgregatorItem item = cdl.getObjects();
            Agregator.addItem(item);
      if (cdl.isNewlyCreated()) {
                cdl.afterRemove();
            } else {
                cdl.remove();
            }
        }
        //refreshItemListAgregator(); пнется листенером
        refreshItemListCheckup();
     getContainer().contentStateChanged();
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.checkup.CheckupDICOMLocal

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.