Package reportgen.prototype

Examples of reportgen.prototype.CoreFactoryList


            super(parent, reportInfo);
        }

        @Override
        protected void appendNewCore() throws ReportException {
            CoreFactoryList factory = new CoreFactoryList();
            List<String> cores = factory.getCores();
            if(cores.size() == 0) {
                throw new ReportException("Нет доступных типов выборок");
            }
            QCore core = null;
            if(cores.size() == 1) {
                core = factory.createCore(0, reportQuery.getReportContext(new NoNeedAtom()));
            } else {
                Object title = JOptionPane.showInputDialog(parent, "Выберите тип нового запроса",
                        "", JOptionPane.QUESTION_MESSAGE, null, cores.toArray(), null);
                int index = cores.indexOf(title);
                if(index == -1) {
                    return;
                }
                core = factory.createCore(index, reportQuery.getReportContext(new NoNeedAtom()));
            }
            reportQuery.getCores().add(core);

            CorePanel panel = new CorePanel(parent, core);
            tabs.put(core, panel);
View Full Code Here


        this.tableFormats = new TableFormatList();
        this.rowCount = new RowCount();
        this.version = ReportFactory.getActualVersion();
        this.cores = new CoresList(this);

        CoreFactoryList factory = new CoreFactoryList();
        QCore core = factory.createDefaultCore(getReportContext(new NoNeedAtom()));
        this.cores.add(core);
    }
View Full Code Here

    }

    @Override
    protected QCore loadChild(Element root, Context context)
            throws ReportException {
        return new CoreFactoryList().loadCore(root, context);
    }
View Full Code Here

@Stateless(mappedName="clips-beans/ReportGeneratorRegister")
public class ReportGeneratorRegister implements ReportEntitySetResource {

    @Override
    public void init() {
        new CoreFactoryList().register(new CoreFactoryEjb(new IntelClinicReportSet()));
    }
View Full Code Here

TOP

Related Classes of reportgen.prototype.CoreFactoryList

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.