Package clips.dicom.model

Examples of clips.dicom.model.AgregatorItem


    ArrayList<DICOMChekup>        summ = new ArrayList<DICOMChekup>();
    for (ArrayList<DICOMChekup> object : target.values()) {
      summ.addAll(object);
    }
    if (summ.size() > 0){
      AgregatorItem      item = new AgregatorItem(summ, AgregatorItem.ItemsType.indefine(summ.get(0)));
      return item;
    }
    else {
      throw new ClipsException("Отсутствуют DICOM объекты в базе данных");
    }
View Full Code Here


    private void refreshItemListAgregator() {
        agregItems = Agregator.getItems();
        //Синхронизация итемов
        for (int i = 0; i < agregItems.size(); i++) {
            AgregatorItem agregatorItem = agregItems.get(i);
            boolean founded = false;
            for (int j = 0; j < modelAgreg.getSize(); j++) {
                AgregatorItem agregatorItem1 = (AgregatorItem) modelAgreg.getElementAt(j);
                if (agregatorItem1 == agregatorItem) {
                    founded = true;
                }
            }

            if (!founded) {
                modelAgreg.addElement(agregatorItem);
            }
        }
        for (int i = modelAgreg.getSize() - 1; i >= 0; i--) {
            AgregatorItem agregatorItem1 = (AgregatorItem) modelAgreg.get(i);
            boolean founded = false;
            for (int j = 0; j < agregItems.size(); j++) {
                AgregatorItem agregatorItem = agregItems.get(j);
                if (agregatorItem == agregatorItem1) {
                    founded = true;
                }
            }
            if (!founded) {
View Full Code Here

        boolean focusOnSelectedItem = false;
        for (int i = 0; i < selectedIndices.length && !focusOnSelectedItem; i++) {
            focusOnSelectedItem = selectedIndices[i] == sel;
        }
        if (focusOnSelectedItem && lstAgregator.getModel().getSize() > 0 && lstAgregator.getModel().getElementAt(sel) instanceof AgregatorItem){
            AgregatorItem item = (AgregatorItem) lstAgregator.getModel().getElementAt(sel);
            pnlDICOMView.setAgregator(item);
            lblTitle.setText(item.getName());
        }else{
            pnlDICOMView.setAgregator(null);
            lblTitle.setText("");
        }
    }//GEN-LAST:event_lstAgregatorValueChanged
View Full Code Here

    }

    private void refreshItemListAgregator() {
        //Синхронизация итемов
        for (int i = 0; i < agregItems.size(); i++) {
            AgregatorItem agregatorItem = agregItems.get(i);
            boolean founded = false;
            for (int j = 0; j < modelAgreg.getSize(); j++) {
                AgregatorItem agregatorItem1 = (AgregatorItem) modelAgreg.getElementAt(j);
                if (agregatorItem1 == agregatorItem) {
                    founded = true;
                }
            }
            if (!founded) {
                modelAgreg.addElement(agregatorItem);
            }
        }
        for (int i = modelAgreg.getSize() - 1; i >= 0; i--) {
            AgregatorItem agregatorItem1 = (AgregatorItem) modelAgreg.get(i);
            boolean founded = false;
            for (int j = 0; j < agregItems.size(); j++) {
                AgregatorItem agregatorItem = agregItems.get(j);
                if (agregatorItem == agregatorItem1) {
                    founded = true;
                }
            }
            if (!founded) {
View Full Code Here

    }
}//GEN-LAST:event_jListAgregatorValueChanged

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(); пнется листенером
View Full Code Here

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();
View Full Code Here

        MessageBox.showException(ex);
    }
}//GEN-LAST:event_btRemoveActionPerformed

private void btRemoveAgregatorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRemoveAgregatorActionPerformed
    AgregatorItem cdl = (AgregatorItem) jListAgregator.getSelectedValue();
    if (cdl != null){
      if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT) == MessageBox.ANSWER_YES){
        Agregator.removeItem(cdl);
        Agregator.finallyRemoveItem(cdl);
      }
View Full Code Here

TOP

Related Classes of clips.dicom.model.AgregatorItem

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.