Examples of ItemBand


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

    if (originalGroupDataBody == null)
    {
      throw new ParseException("The report is not a relational report, cannot install relational detail sections here");
    }

    final ItemBand ib = originalGroupDataBody.getItemBand();
    final NoDataBand nd = originalGroupDataBody.getNoDataBand();
    final DetailsHeader detailsHeader = originalGroupDataBody.getDetailsHeader();
    final DetailsFooter detailsFooter = originalGroupDataBody.getDetailsFooter();

    final Group newRootGroup = constructRootGroup();
View Full Code Here

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

    {
      return new GroupsReadHandler(groupList);
    }
    else if ("itemband".equals(tagName))
    {
      final ItemBand itemBand = (ItemBand) report.getChildElementByType(ItemBandType.INSTANCE);
      if (itemBand == null)
      {
        throw new ParseException("Not a relational report");
      }
      return new RootBandReadHandler(itemBand);
View Full Code Here

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

    {
      return new GroupsReadHandler(groupList);
    }
    else if ("items".equals(tagName))
    {
      final ItemBand itemBand = (ItemBand) report.getChildElementByType(ItemBandType.INSTANCE);
      if (itemBand == null)
      {
        throw new ParseException("Not a relational report");
      }
      return new RootLevelBandReadHandler(itemBand);
View Full Code Here

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

    {
      return new GroupsReadHandler(groupList);
    }
    else if ("items".equals(tagName))
    {
      final ItemBand itemBand = (ItemBand) report.getChildElementByType(ItemBandType.INSTANCE);
      if (itemBand == null)
      {
        throw new ParseException("Not a relational report");
      }
      return new RootLevelBandReadHandler(itemBand);
View Full Code Here

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

    {
      return;
    }
    try
    {
      final ItemBand itemBand = event.getReport().getItemBand();
      if (itemBand != null)
      {
        w.write("<itemband>");
        writeBand(itemBand);
        w.write("</itemband>");
View Full Code Here

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

  }

  public void testExport() throws Exception
  {
    final MasterReport report = new MasterReport();
    final ItemBand itemBand = report.getItemBand();
    final TextFieldElementFactory cfef = new TextFieldElementFactory();
    cfef.setFieldname("field");
    cfef.setMinimumWidth(new Float(500));
    cfef.setMinimumHeight(new Float(200));
    itemBand.addElement(cfef.createElement());

    final DefaultTableModel tableModel = new DefaultTableModel(new String[]{"field"}, 2000);
    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt("Value row = " + row, row, 0);
View Full Code Here

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

  }

  public void testExport() throws Exception
  {
    final MasterReport report = new MasterReport();
    final ItemBand itemBand = report.getItemBand();
    final TextFieldElementFactory cfef = new TextFieldElementFactory();
    cfef.setFieldname("field");
    cfef.setMinimumWidth(new Float(500));
    cfef.setMinimumHeight(new Float(200));
    itemBand.addElement(cfef.createElement());

    final DefaultTableModel tableModel = new DefaultTableModel(new String[]{"field"}, 2000);
    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt("Value row = " + row, row, 0);
View Full Code Here

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

  public ProcessState advance(final ProcessState state) throws ReportProcessingException
  {
    final ProcessState next = state.deriveForAdvance();
    next.fireReportEvent();

    final ItemBand childs = next.getReport().getItemBand();
    if (childs != null)
    {
      return InlineSubreportProcessor.processInline(next, childs);
    }
    return next;
View Full Code Here

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

  }


  public ProcessState commit(final ProcessState next) throws ReportProcessingException
  {
    final ItemBand childs = next.getReport().getItemBand();
    if (childs == null)
    {
      return JoinDetailsHandler.HANDLER.commit(next);
    }
View Full Code Here

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

    final URL source = getClass().getResource("Prd-4625.prpt");
    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(source, MasterReport.class).getResource();

    final ItemBand itemBand = report.getItemBand();
    final SubReport subReport = (SubReport) itemBand.getElement(0);
    subReport.addExpression(new ValidateChartConfigurationFunction());
    // the chart is in the report header. We now validate that there is a chart-dataset collector added to the
    // report.

    DebugReportRunner.execGraphics2D(report);
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.