Package reportgen.ren.report.extendedformat.table

Examples of reportgen.ren.report.extendedformat.table.TableFormat


        ItemSelectorEditable<TableFormat> fields = query.getTableFormats();
        int index = formatsTable.getSelectionModel().getLeadSelectionIndex();
        if(index == -1) {
            return;
        }
        TableFormat tf = fields.get(index);
        try {
            TableFormatDlg dlg = new TableFormatDlg(parent, tf);
            dlg.setVisible(true);
            if (dlg.isOK()) {
                formatsTable.updateUI();
View Full Code Here


        ItemSelectorEditable<TableFormat> fields = query.getTableFormats();
        int index = formatsTable.getSelectionModel().getLeadSelectionIndex();
        if(index == -1) {
            return;
        }
        TableFormat tfOrigin = fields.get(index);
        Element stream = tfOrigin.toXML();

        final LinkedList<Atom> atoms = new LinkedList<Atom>();
        Context context = query.getContext3Stage(new AtomRegistrar() {
            @Override
            public void registerAtom(Atom atom) {
                atoms.add(atom);
            }
        });
        try {
            TableFormat tf = new TableFormat(stream, context);
            for(Atom a:atoms) {
                a.refresh();
            }
            TableFormatDlg dlg = new TableFormatDlg(parent, tf);
View Full Code Here

    }


    @Override
    public Object getValueAt(int row, int col) {
        TableFormat table = tables.get(row);
        switch(col) {
            case COL_TITLE: {
                Object val = table.getTitle();
                if(val != null) {
                    return val;
                }
                break;
            }
            case COL_ENABLED: {
                return table.isEnabled();
            }
        }
        return null;
    }
View Full Code Here

        return null;
    }

    @Override
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        TableFormat table = tables.get(rowIndex);
        switch(columnIndex) {
            case COL_TITLE: {
                String newTitle = aValue.toString();
                table.setTitle(newTitle);
                break;
            }
            case COL_ENABLED: {
                table.setEnabled((Boolean)aValue);
                break;
            }
        }
    }
View Full Code Here

        );
    }// </editor-fold>//GEN-END:initComponents

    private void addBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addBtnActionPerformed
        Context context = query.getContext3Stage(new NoNeedAtom());
        TableFormat tf = new TableFormat(context);
        try {
            TableFormatDlg dlg = new TableFormatDlg(parent, tf);

            dlg.setVisible(true);
            if (dlg.isOK()) {
View Full Code Here

    private List<TableProcessor> getAvailiableFormats() throws ReportException {
        TableFormatList formats = query.getTableFormats();
        List<TableProcessor> list = new LinkedList<TableProcessor>();
        for (int i = 0; i < formats.size(); i++) {
            TableFormat format = formats.get(i);
            if (format.isEnabled()) {
                list.add(new TableProcessor(format));
            }
        }
        if (list.size() == 0) {
            throw new ReportException("Отчет не содержит таблиц расширенного формата");
View Full Code Here

    }

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

TOP

Related Classes of reportgen.ren.report.extendedformat.table.TableFormat

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.