Examples of CrosstabBuilder


Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    this.optionsPane.setReportDesignerContext(designerContext);

    try
    {
      final CrosstabBuilder originBuilder;
      if (editedGroup != null)
      {
        originBuilder = CrosstabEditSupport.populateBuilder(editedGroup, reportRenderContext.getReportDataSchemaModel());
        populateDialogFromBuilder(originBuilder);
        optionsPane.setValuesFromGroup(editedGroup);
      }
      else
      {
        originBuilder = new CrosstabBuilder(reportRenderContext.getReportDataSchemaModel());
      }

      reportRenderContext.addReportDataChangeListener(this);
      dataModelChanged(reportRenderContext);

      if (performEdit() == false)
      {
        return null;
      }

      if (columnsFieldsModel.size() < 1)
      {
        return null;
      }
      if (rowsFieldsModel.size() < 1)
      {
        return null;
      }

      final CrosstabBuilder builder = originBuilder.clearDimensions();
      configureBuilderFromOptions(builder);

      for (int i = 0; i < detailFieldsModel.size(); i += 1)
      {
        final CrosstabDetail crosstabDetail = detailFieldsModel.get(i);
        builder.addDetails(crosstabDetail.getField(), crosstabDetail.getAggregation());
      }

      for (int col = 0; col < columnsFieldsModel.size(); col += 1)
      {
        final CrosstabDimension column = columnsFieldsModel.get(col);
        builder.addColumnDimension(column);
      }

      for (int row = 0; row < rowsFieldsModel.size(); row += 1)
      {
        final CrosstabDimension rowDimension = rowsFieldsModel.get(row);
        builder.addRowDimension(rowDimension);
      }

      for (int other = 0; other < otherFieldsModel.size(); other += 1)
      {
        final String column = (String) otherFieldsModel.get(other);
        builder.addOtherDimension(column);
      }

      final CrosstabGroup crosstabGroup = builder.create();
      optionsPane.setValuesOnGroup(crosstabGroup);
      return crosstabGroup;
    }
    finally
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    detailsChanged = null;
  }

  public CrosstabBuilder clearDimensions()
  {
    final CrosstabBuilder crosstabBuilder = super.clearDimensions();
    detailsChanged = null;
    return crosstabBuilder;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    report.setPageDefinition(new SimplePageDefinition(PageSize.A3, PageFormat.LANDSCAPE, new Insets(0, 0, 0, 0)));
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final ContextAwareDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension(ROW_DIMENSION_A);
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, function.getClass());
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return report;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabBuilder

    final MasterReport report = new MasterReport();
    report.setDataFactory(new TableDataFactory("query", tableModel));
    report.setQuery("query");
    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);

    final CrosstabBuilder builder = new CrosstabBuilder(dataSchemaModel);
    builder.addRowDimension("Row-Dimension-A");
    builder.addRowDimension(ROW_DIMENSION_B);
    builder.addColumnDimension(COLUMN_DIMENSION_A);
    builder.addColumnDimension(COLUMN_DIMENSION_B);
    builder.addDetails(VALUE, null);
    report.setRootGroup(builder.create());
    return 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.