Examples of ExpressionRuntime


Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

    final Expression evalExpression = expression.getInstance();

    final InlineDataRowRuntime runtime = new InlineDataRowRuntime();
    runtime.setState(this);
    final ExpressionRuntime oldRuntime = evalExpression.getRuntime();
    try
    {
      evalExpression.setRuntime(runtime);
      return evalExpression.getValue();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

    {
    }

    public Locale getLocale()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getResourceBundleFactory().getLocale();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

      return expressionRuntime.getResourceBundleFactory().getLocale();
    }

    public OutputProcessorMetaData getOutputProcessorMetaData()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getProcessingContext().getOutputProcessorMetaData();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

    report.getReportHeader().getElement(1).getStyle().setStyleProperty(TextStyleKeys.DIRECTION, TextDirection.RTL);
    report.getReportHeader().removeElement(0);
    report.getReportHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
    report.getReportFooter().clear();

    ExpressionRuntime runtime = new GenericExpressionRuntime(new DefaultTableModel(), 0, new DefaultProcessingContext(report));

    RichTextStyleResolver.resolveStyle(report);

    XSSFWorkbook hssfWorkbook = new XSSFWorkbook();
    ExcelColorProducer colorProducer = new StaticExcelColorSupport();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

    FastHtmlImageBounds bounds = new FastHtmlImageBounds(StrictGeomUtility.toInternalValue(20.465),
        StrictGeomUtility.toInternalValue(20.465), StrictGeomUtility.toInternalValue(16),
        StrictGeomUtility.toInternalValue(16));
    recordedBounds.put(element.getElement(1).getObjectID(), bounds);

    ExpressionRuntime runtime = new GenericExpressionRuntime(new DefaultTableModel(), 0, new DefaultProcessingContext(report));
    assertTrue(te.performOutput(element, setup.productImpliedStyles(), recordedBounds, runtime));
    String text = setup.getResult();
    String start = text.substring(0, FAST_HTML_MATCH.length());
    assertEquals(FAST_HTML_MATCH, start);
    assertTrue(text.endsWith("</span>\n"));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

   * @return the value of the function.
   */
  public Object getValue()
  {

    final ExpressionRuntime runtime = getRuntime();
    if (runtime == null)
    {
      return null;
    }
    final TableModel data = runtime.getData();
    if (data == null)
    {
      return null;
    }
    if (data.getRowCount() == 0)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

    {
    }

    public Locale getLocale()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getResourceBundleFactory().getLocale();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

      return expressionRuntime.getResourceBundleFactory().getLocale();
    }

    public OutputProcessorMetaData getOutputProcessorMetaData()
    {
      final ExpressionRuntime expressionRuntime = getRuntime();
      if (expressionRuntime == null)
      {
        throw new IllegalStateException();
      }
      return expressionRuntime.getProcessingContext().getOutputProcessorMetaData();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

      if (event.getState().isSubReportEvent() == false)
      {
        renderer.startReport(report, getRuntime().getProcessingContext(), event.getState().getPerformanceMonitorContext());

        final ReportState reportState = event.getState();
        final ExpressionRuntime runtime = getRuntime();
        try
        {
          reportState.firePageStartedEvent(reportState.getEventCode());
        }
        finally
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime

    }

    final ProcessingContext processingContext = getRuntime().getProcessingContext();
    final ReportDefinition report = state.getReport();
    LayouterLevel[] levels = null;
    ExpressionRuntime runtime = null;
    final OutputProcessorMetaData metaData = renderer.getOutputProcessor().getMetaData();
    if (metaData.isFeatureSupported(OutputProcessorFeature.WATERMARK_SECTION))
    {
      renderer.startSection(Renderer.SectionType.WATERMARK);
      // a new page has started, so reset the cursor ...
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.