Package net.sf.jasperreports.crosstabs

Examples of net.sf.jasperreports.crosstabs.JRCellContents


    writer.addAttribute(JRCrosstabGroupFactory.ATTRIBUTE_totalPosition, group.getTotalPositionValue(), CrosstabTotalPositionEnum.NONE);
    writer.addAttribute(JRCrosstabRowGroupFactory.ATTRIBUTE_headerPosition, group.getPositionValue(), CrosstabRowPositionEnum.TOP);

    writeBucket(group.getBucket());

    JRCellContents header = group.getHeader();
    writer.startElement(JRCrosstabRowGroupFactory.ELEMENT_crosstabRowHeader);
    writeCellContents(header);
    writer.closeElement();

    JRCellContents totalHeader = group.getTotalHeader();
    writer.startElement(JRCrosstabRowGroupFactory.ELEMENT_crosstabTotalRowHeader);
    writeCellContents(totalHeader);
    writer.closeElement();

    writer.closeElement();
View Full Code Here


    writer.addAttribute(JRCrosstabGroupFactory.ATTRIBUTE_totalPosition, group.getTotalPositionValue(), CrosstabTotalPositionEnum.NONE);
    writer.addAttribute(JRCrosstabColumnGroupFactory.ATTRIBUTE_headerPosition, group.getPositionValue(), CrosstabColumnPositionEnum.LEFT);

    writeBucket(group.getBucket());

    JRCellContents header = group.getHeader();
    writer.startElement(JRCrosstabGroupFactory.ELEMENT_crosstabColumnHeader);
    writeCellContents(header);
    writer.closeElement();

    JRCellContents totalHeader = group.getTotalHeader();
    writer.startElement(JRCrosstabGroupFactory.ELEMENT_crosstabTotalColumnHeader);
    writeCellContents(totalHeader);
    writer.closeElement();

    writer.closeElement();
View Full Code Here

   
    if (groups != null)
    {
      for (int i = 0; element == null && i < groups.length; i++)
      {
        JRCellContents header = groups[i].getHeader();
        element = header.getElementByKey(key);
       
        if (element == null)
        {
          JRCellContents totalHeader = groups[i].getTotalHeader();
          element = totalHeader.getElementByKey(key);
        }
      }
    }
   
    return element;
View Full Code Here

        String cellText = getCrosstabCellText(rowGroups, columnGroups, i, j);

        if (cell != null)
        {
          JRCellContents contents = cell.getContents();

          if (i < rowGroups.length)
          {
            JRCrosstabCell colCell = cells[rowGroups.length][j];
            if (colCell != null && colCell.getContents().getWidth() != contents.getWidth())
            {
              addBrokenRule("Crosstab " + cellText + " width should be " + colCell.getContents().getWidth() + ".", cell);
            }
          }

          if (j < columnGroups.length)
          {
            JRCrosstabCell rowCell = cells[i][columnGroups.length];
            if (rowCell != null && rowCell.getContents().getHeight() != contents.getHeight())
            {
              addBrokenRule("Crosstab " + cellText + " height should be " + rowCell.getContents().getHeight() + ".", cell);
            }
          }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.crosstabs.JRCellContents

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.