Examples of TocElement


Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  protected Object finishResult(final Object res,
                                final ResourceManager manager,
                                final ResourceData data,
                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final TocElement report = (TocElement) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    // subreports use the content-base of their master-report for now. This is safe for the old platform reports
    // and for bundle-reports.
    report.setDefinitionSource(data.getKey());
    return report;

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  {
    final Object maybeReport = getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);
    if (maybeReport instanceof TocElement == false)
    {
      // replace it ..
      report = new TocElement();
      getRootHandler().setHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME, report);
    }
    else
    {
      report = (TocElement) maybeReport;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  private boolean parseLayout(final String layout) throws ParseException
  {
    try
    {
      final TocElement report = (TocElement) performExternalParsing(layout, TocElement.class);
      return report == this.report;
    }
    catch (ResourceLoadingException e)
    {
      logger.warn("Unable to parse the parameter for this bundle from file: " + layout);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  private boolean parseStyles(final String stylefile) throws ParseException
  {
    try
    {
      final TocElement report = (TocElement) performExternalParsing(stylefile, TocElement.class);
      return report == this.report;
    }
    catch (ResourceLoadingException e)
    {
      logger.warn("Unable to parse the parameter for this bundle from file: " + stylefile);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

        context.setActiveDocument(rrc);
        return null;
      }
    }

    final TocElement report = (TocElement) value;
    try
    {
      context.addSubReport(rootBandRenderComponent.getRenderContext(), report);
    }
    catch (ReportDataFactoryException e1)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

          designerContext.setActiveDocument(rrc);
          return;
        }
      }

      final TocElement report = (TocElement) element;
      try
      {
        designerContext.addSubReport(activeReportContext, report);
      }
      catch (ReportDataFactoryException e1)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  protected Element createElement(final ElementMetaData elementMetaData,
                                  final String fieldName,
                                  final ReportDocumentContext context) throws InstantiationException
  {
    final ElementType type = elementMetaData.create();
    final TocElement visualElement = new TocElement();
    visualElement.setAutoSort(Boolean.TRUE);
    visualElement.getRelationalGroup(0).getHeader().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, Boolean.TRUE);
    visualElement.getRelationalGroup(0).getFooter().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, Boolean.TRUE);
    visualElement.getDetailsFooter().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, Boolean.TRUE);
    visualElement.getDetailsHeader().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, Boolean.TRUE);
    visualElement.getNoDataBand().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, Boolean.TRUE);
    visualElement.getWatermark().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE, Boolean.TRUE);
    type.configureDesignTimeDefaults(visualElement, Locale.getDefault());

    final ElementStyleSheet styleSheet = visualElement.getStyle();
    styleSheet.setStyleProperty(ElementStyleKeys.MIN_WIDTH, DEFAULT_WIDTH);
    styleSheet.setStyleProperty(ElementStyleKeys.MIN_HEIGHT, DEFAULT_HEIGHT);
    return visualElement;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  protected Object finishResult(final Object res,
                                final ResourceManager manager,
                                final ResourceData data,
                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final TocElement report = (TocElement) res;
    if (report == null)
    {
      throw new ResourceCreationException("Report has not been parsed.");
    }

    // subreports use the content-base of their master-report for now. This is safe for the old platform reports
    // and for bundle-reports.
    report.setDefinitionSource(data.getKey());
    return report;

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  {
    final Object maybeReport = getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);
    if (maybeReport instanceof TocElement == false)
    {
      // replace it ..
      report = new TocElement();
      getRootHandler().setHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME, report);
    }
    else
    {
      report = (TocElement) maybeReport;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.extensions.toc.TocElement

  private boolean parseLayout(final String layout) throws ParseException
  {
    try
    {
      final TocElement report = (TocElement) performExternalParsing(layout, TocElement.class);
      return report == this.report;
    }
    catch (ResourceLoadingException e)
    {
      logger.warn("Unable to parse the parameter for this bundle from file: " + layout);
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.