Package reportgen.formatter.extended.cell

Examples of reportgen.formatter.extended.cell.CellProcessor


                    c.setAttachedModel(model);
                   
                    //prepare cell model
                    Map cellModel = makeCompoundModel(workModel, c.getModel());

                    CellProcessor cell = createCell(c, r);
                    cell.addRow(cellModel);
                }
            }
        }
        makeAfterClean();
        ensureCellCreated();
View Full Code Here


        HtmlExporter.getInstance(this).toHTML(stream);
    }

    public CellProcessor getCell(RangeProcessor col, RangeProcessor row) {
        HashMap<RangeProcessor, CellProcessor> selRow = col2cell.get(row);
        CellProcessor cell = selRow.get(col);
        return cell;       
    }
View Full Code Here

        HashMap<RangeProcessor, CellProcessor> selRow = col2cell.get(row);
        if(selRow == null) {
            selRow = new HashMap<RangeProcessor, CellProcessor>();
            col2cell.put(row, selRow);
        }
        CellProcessor cell = selRow.get(col);
        if(cell == null) {
            cell = new CellProcessor(range.getCell(col.getRange(), row.getRange()));
            selRow.put(col, cell);
        }
        return cell;
    }
View Full Code Here

    protected void buildRowBody(RangeProcessor rowRange, int row, int col) throws ReportException {
        Map rowModel = rowRange.getModel();

        //шапка закончена - дорисовываем ячейки
        for(RangeProcessor range: colsFlat) {
            CellProcessor cell = table.getCell(range, rowRange);

            Map cellModel = rowModel;
            Map colModel = range.getModel();
            if(colModel != null) {
                if(cellModel != null) {
                    cellModel = new HashMap(cellModel);
                    cellModel.putAll(colModel);
                } else {
                    cellModel = colModel;
                }
            }

            Object cellValue = cell.getValue(cellModel);
            if(cellValue instanceof Double) {
                cellValue = String.format(locale, "%.1f", cellValue);
            }
            String style = styleToString(cell.getCellValue().getStyle());
            txtRows[row] += "<td"
                    + (style == null ? "": " style='" + style + "'")
                    + ">"
                    + (cellValue == null ? "&nbsp;":cellValue.toString())
                    + "</td>";
View Full Code Here

TOP

Related Classes of reportgen.formatter.extended.cell.CellProcessor

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.