Examples of Band


Examples of org.pentaho.reporting.engine.classic.core.Band

      if ("child".equalsIgnoreCase(tagName))
      {
        final String type = atts.getValue(uri, "type");
        if ("org.pentaho.reportdesigner.crm.report.model.BandReportElement".equals(type))
        {
          final AbstractReportElementReadHandler readHandler = new BandElementReadHandler(new Band());
          childElements.add(readHandler);
          return readHandler;
        }
        if ("org.pentaho.reportdesigner.crm.report.model.AnchorFieldReportElement".equals(type))
        {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

      // a deep traversing event means, we are in a subreport ..

      // force that this last pagebreak ... (This is an indicator for the
      // pagefooter's print-on-last-page) This is highly unclean and may or
      // may not work ..
      final Band b = event.getReport().getReportFooter();
      renderer.startSection(Renderer.TYPE_NORMALFLOW);
      print(getRuntime(), b);
      addSubReportMarkers(renderer.endSection());

      if (event.isDeepTraversing() == false)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

          }
        }
      }

      // and finally print the watermark of the subreport itself ..
      final Band watermark = report.getWatermark();
      if (isPageHeaderPrinting(watermark, state))
      {
        runtime = createRuntime(state.getFlowController().getMasterRow(), state, processingContext);
        print(runtime, watermark);
      }
      addSubReportMarkers(renderer.endSection());
    }

    if (metaData.isFeatureSupported(OutputProcessorFeature.PAGE_SECTIONS))
    {
      renderer.startSection(Renderer.TYPE_HEADER);
      // after printing the watermark, we are still at the top of the page.

      if (levels == null)
      {
        levels = DefaultOutputFunction.collectSubReportStates(state, processingContext);
      }

      for (int i = levels.length - 1; i >= 0; i -= 1)
      {
        // This is propably wrong (or at least incomplete) in case a subreport uses header or footer which should
        // not be printed with the report-footer or header ..
        final LayouterLevel level = levels[i];
        final ReportDefinition def = level.getReportDefinition();
        final PageHeader header = def.getPageHeader();
        if (header.isSticky())
        {
          if (isPageHeaderPrinting(header, state))
          {
            print(level.getRuntime(), header);
          }
          else
          {
            printEmptyRootLevelBand();
          }
        }
      }

      // and print the ordinary page header ..
      final Band b = report.getPageHeader();
      if (isPageHeaderPrinting(b, state))
      {
        if (runtime == null)
        {
          runtime = createRuntime(state.getFlowController().getMasterRow(), state, processingContext);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

  private ArrayList elementHandlers;
  private ArrayList styleExpressionHandlers;

  public BandReadHandler()
  {
    this(new Band());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

    this("band");
  }

  protected Element createElement(final String elementType) throws ParseException
  {
    return new Band();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

   */
  protected void doneParsing() throws SAXException
  {
    super.doneParsing();

    final Band band = (Band) getElement();
    for (int i = 0; i < elementHandlers.size(); i++)
    {
      final XmlReadHandler readHandler = (XmlReadHandler) elementHandlers.get(i);
      final Element e = (Element) readHandler.getObject();
      band.addElement(e);
    }

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

    final Element[] list = band.getElementArray();
    for (int i = 0; i < list.length; i++)
    {
      if (list[i] instanceof Band)
      {
        final Band b = (Band) list[i];
        writeBand(ReportDescriptionWriter.BAND_TAG, b);
      }
      else
      {
        writeElement(list[i]);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

   * @throws org.xml.sax.SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    super.doneParsing();
    final Band band = getBand();
    if (band instanceof AbstractRootLevelBand)
    {
      final AbstractRootLevelBand arlb = (AbstractRootLevelBand) band;
      for (int i = 0; i < subReportHandlers.size(); i++)
      {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

    if (FunctionUtilities.isLayoutLevel(event) == false)
    {
      // dont do anything if there is no printing done ...
      return;
    }
    final Band b = event.getReport().getItemBand();
    processRootBand(b);

    processFooterBands(event.getState());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Band

    final boolean slottedHeaderMode =
        ("slotted".equals(getRuntime().getConfiguration().getConfigProperty
            ("org.pentaho.reporting.engine.classic.core.layout.HeaderPageBandMode", "slotted")));
    if (slottedHeaderMode)
    {
      final Band b = event.getReport().getPageHeader();
      processRootBand(b);
    }
  }
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.