Examples of JRSection


Examples of net.sf.jasperreports.engine.JRSection

      addBrokenRule(brokenRules,
          "The summary section and the margins do not fit the page height.",
          report);
    }

    JRSection detailSection = report.getDetailSection();
    if (detailSection != null)
    {
      JRBand[] detailBands = detailSection.getBands();
      if (detailBands != null && detailBands.length > 0)
      {
        for(int i = 0; i< detailBands.length; i++)
        {
          JRBand detailBand = detailBands[i];
View Full Code Here

Examples of net.sf.jasperreports.engine.JRSection

  private void verifyGroupHeaderAndFooter(JRGroup group)
  {
    if (jasperDesign.isTitleNewPage())
    {
      JRSection groupHeaderSection = group.getGroupHeaderSection();
      if (groupHeaderSection != null)
      {
        JRBand[] groupHeaderBands = groupHeaderSection.getBands();
        if (groupHeaderBands != null && groupHeaderBands.length > 0)
        {
          for(int i = 0; i< groupHeaderBands.length; i++)
          {
            JRBand groupHeaderBand = groupHeaderBands[i];
            if (
              jasperDesign.getTopMargin() +
              (jasperDesign.getPageHeader() != null ? jasperDesign.getPageHeader().getHeight() : 0) +
              (jasperDesign.getColumnHeader() != null ? jasperDesign.getColumnHeader().getHeight() : 0) +
              getBreakHeight(groupHeaderBand) +
              (jasperDesign.getColumnFooter() != null ? jasperDesign.getColumnFooter().getHeight() : 0) +
              (jasperDesign.getPageFooter() != null ? jasperDesign.getPageFooter().getHeight() : 0) +
              jasperDesign.getBottomMargin() >
              jasperDesign.getPageHeight()
              )
            {
              addBrokenRule("The '" + group.getName() + "' group header section, the page and column headers and footers and the margins do not fit the page height.", groupHeaderBand);
            }
          }
        }
      }

      JRSection groupFooterSection = group.getGroupFooterSection();
      if (groupFooterSection != null)
      {
        JRBand[] groupFooterBands = groupFooterSection.getBands();
        if (groupFooterBands != null && groupFooterBands.length > 0)
        {
          for(int i = 0; i< groupFooterBands.length; i++)
          {
            JRBand groupFooterBand = groupFooterBands[i];
            if (
              jasperDesign.getTopMargin() +
              (jasperDesign.getPageHeader() != null ? jasperDesign.getPageHeader().getHeight() : 0) +
              (jasperDesign.getColumnHeader() != null ?  jasperDesign.getColumnHeader().getHeight() : 0) +
              getBreakHeight(groupFooterBand) +
              (jasperDesign.getColumnFooter() != null ? jasperDesign.getColumnFooter().getHeight() : 0) +
              (jasperDesign.getPageFooter() != null ? jasperDesign.getPageFooter().getHeight() : 0) +
              jasperDesign.getBottomMargin() >
              jasperDesign.getPageHeight()
              )
            {
              addBrokenRule("The '" + group.getName() + "' group footer section, the page and column headers and footers and the margins do not fit the page height.", groupFooterBand);
            }
          }
        }
      }
    }
    else
    {
      JRSection groupHeaderSection = group.getGroupHeaderSection();
      if (groupHeaderSection != null)
      {
        JRBand[] groupHeaderBands = groupHeaderSection.getBands();
        if (groupHeaderBands != null && groupHeaderBands.length > 0)
        {
          for(int i = 0; i< groupHeaderBands.length; i++)
          {
            JRBand groupHeaderBand = groupHeaderBands[i];
            if (
              jasperDesign.getTopMargin() +
              (jasperDesign.getTitle() != null ? jasperDesign.getTitle().getHeight() : 0) +
              (jasperDesign.getPageHeader() != null ? jasperDesign.getPageHeader().getHeight() : 0) +
              (jasperDesign.getColumnHeader() != null ? jasperDesign.getColumnHeader().getHeight() : 0) +
              getBreakHeight(groupHeaderBand) +
              (jasperDesign.getColumnFooter() != null ? jasperDesign.getColumnFooter().getHeight() : 0) +
              (jasperDesign.getPageFooter() != null ? jasperDesign.getPageFooter().getHeight() : 0) +
              jasperDesign.getBottomMargin() >
              jasperDesign.getPageHeight()
              )
            {
              addBrokenRule("The '" + group.getName() + "' group header section, the title, the page and column headers and footers and the margins do not fit the first page height.", groupHeaderBand);
            }
          }
        }
      }

      JRSection groupFooterSection = group.getGroupFooterSection();
      if (groupFooterSection != null)
      {
        JRBand[] groupFooterBands = groupFooterSection.getBands();
        if (groupFooterBands != null && groupFooterBands.length > 0)
        {
          for(int i = 0; i< groupFooterBands.length; i++)
          {
            JRBand groupFooterBand = groupFooterBands[i];
View Full Code Here

Examples of net.sf.jasperreports.engine.JRSection

      write( "//column header\n\n");
      writeBand( report.getColumnHeader(), "columnHeaderBand");
      write( "jasperDesign.setColumnHeader(columnHeaderBand);\n\n");
    }

    JRSection detail = report.getDetailSection();
    if (detail != null && detail.getBands() != null && detail.getBands().length > 0)
    {
      writeSection(
          detail,
          "detailBand",
          indent + "((JRDesignSection)jasperDesign.getDetailSection()).getBandsList()"
View Full Code Here

Examples of net.sf.jasperreports.engine.JRSection

   
    write( groupName + ".setKeepTogether({0});\n", group.isKeepTogether(), false);

    writeExpression( group.getExpression(), groupName, "Expression");

    JRSection groupHeader = group.getGroupHeaderSection();
    if (groupHeader != null)
    {
      writeSection(
          groupHeader,
          groupName+"Header",
          "((JRDesignSection)" + groupName + ".getGroupHeaderSection()).getBandsList()"
          );
    }

    JRSection groupFooter = group.getGroupFooterSection();
    if (groupFooter != null)
    {
      writeSection(
          groupFooter,
          groupName+"Footer",
View Full Code Here

Examples of net.sf.jasperreports.engine.JRSection

      writer.startElement(JRXmlConstants.ELEMENT_columnHeader);
      writeBand(report.getColumnHeader());
      writer.closeElement();
    }

    JRSection detail = report.getDetailSection();
    if (detail != null)
    {
      writer.startElement(JRXmlConstants.ELEMENT_detail);
      writeSection(detail);
      writer.closeElement(true);
View Full Code Here

Examples of net.sf.jasperreports.engine.JRSection

    writer.addAttribute(JRXmlConstants.ATTRIBUTE_footerPosition, group.getFooterPositionValue(), FooterPositionEnum.NORMAL);
    writer.addAttribute(JRXmlConstants.ATTRIBUTE_keepTogether, group.isKeepTogether(), false);

    writer.writeExpression(JRXmlConstants.ELEMENT_groupExpression, group.getExpression(), false);

    JRSection groupHeader = group.getGroupHeaderSection();
    if (groupHeader != null)
    {
      writer.startElement(JRXmlConstants.ELEMENT_groupHeader);
      writeSection(groupHeader);
      writer.closeElement(true);
    }

    JRSection groupFooter = group.getGroupFooterSection();
    if (groupFooter != null)
    {
      writer.startElement(JRXmlConstants.ELEMENT_groupFooter);
      writeSection(groupFooter);
      writer.closeElement(true);
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.