Examples of CertTag


Examples of clips.delegate.doctor.certificate.tag.interfaces.CertTag

                continue;
            }
            Class<? extends CertTag> classByTag = CertTagFactory.getClassByTag(reportParam.getRealName());
            try {
                Constructor<? extends CertTag> constructor = classByTag.getConstructor(CertificateLocal.class, ReportParam.class, DiseaseLocal.class);
                CertTag tag = constructor.newInstance(cert, reportParam, disease);
                tagList.add(tag);
            } catch (NoSuchMethodException ex) {
                throw new ClipsException("Ошибка в теге справки", ex);
            } catch (SecurityException ex) {
                throw new ClipsException("Ошибка в теге справки", ex);
            } catch (InstantiationException ex) {
                throw new ClipsException("Ошибка в теге справки", ex);
            } catch (IllegalAccessException ex) {
                throw new ClipsException("Ошибка в теге справки", ex);
            } catch (IllegalArgumentException ex) {
                throw new ClipsException("Ошибка в теге справки", ex);
            } catch (InvocationTargetException ex) {
                throw new ClipsException("Ошибка в теге справки", ex);
            }
        }
        //Создание компонентов по типу матрешки - панели одна в другой, BorderLayout.NORTH
        JComponent last = jScrollPane1;
        for (int i = 0; i < tagList.size(); i++) {
            CertTag tag = tagList.get(i);
           
            //System.out.println(tag.getClass().toString());

            JPanel border = new JPanel(new BorderLayout(0, 5));
            JPanel panel = null;
View Full Code Here

Examples of clips.delegate.doctor.certificate.tag.interfaces.CertTag

    public void print() {
        try {
            ReportLocal reportLocal = cert.getType().getReportLocal();
            Map<String, Object> map = new HashMap<String, Object>();
            for (int i = 0; i < tagList.size(); i++) {
                CertTag certTag = tagList.get(i);
                map.put(certTag.getTagName(), certTag.getValue());
            }
            JasperPrint clientReport = reportLocal.getClientReport(map);
            ReportPreview.showReport(clientReport);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

Examples of clips.delegate.doctor.certificate.tag.interfaces.CertTag

        TitledBorder border = (TitledBorder) jScrollPane2.getBorder();
        if (row >=0 && row < modelTagList.getRowCount()) {
            String tagName = modelTagList.getTagNameAt(row);
            Class<? extends CertTag> classTag = CertTagFactory.getClassByTag(tagName);
            if (AbstrMultiTag.class.isAssignableFrom(classTag)) {
                CertTag tag = null;
                try {
                    Constructor<? extends CertTag> constructor = classTag.getConstructor();
                    tag = constructor.newInstance();
                } catch (NoSuchMethodException ex) {
                    throw new ClipsException("Ошибка в теге справки", ex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.