Examples of TocElement


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

    }

    try
    {
      final ElementType type = elementMetaData.create();
      final TocElement visualElement = new TocElement();
      visualElement.getRootGroup().getHeader().setAttribute(ReportDesignerParserModule.NAMESPACE, ReportDesignerParserModule.HIDE_IN_LAYOUT_GUI_ATTRIBUTE,Boolean.TRUE);
      visualElement.getRootGroup().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);

      final Element element = dragContext.getElementForLocation(point, false);
      final Band band;
View Full Code Here

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

        context.setActiveContext(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.setActiveContext(rrc);
          return;
        }
      }

      final TocElement report = (TocElement) element;
      try
      {
        designerContext.addSubReport(activeReportContext, report);
      }
      catch (ReportDataFactoryException e1)
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.