Examples of IndexElement


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

  protected Object finishResult(final Object res,
                                final ResourceManager manager,
                                final ResourceData data,
                                final ResourceKey context) throws ResourceCreationException, ResourceLoadingException
  {
    final IndexElement report = (IndexElement) 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.IndexElement

    }

    try
    {
      final ElementType type = elementMetaData.create();
      final IndexElement visualElement = new IndexElement();
      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.IndexElement

          designerContext.setActiveContext(rrc);
          return;
        }
      }

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

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

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

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

Examples of psidev.psi.tools.xxindex.index.IndexElement

  @Override
  public T next() throws NoSuchElementException {
    logger.info("Retrieve next element from the iterator for type <{}>", clss);
   
    // get the next index element
    IndexElement elem = iterator.next().getValue();
    // read the xml snippet
    String xmlSnippet = index.readXML(elem);
    // unmarshal this element
    S temp = unmarshaller.unmarshal(xmlSnippet, preClass);
    // manually call the adapter
View Full Code Here

Examples of psidev.psi.tools.xxindex.index.IndexElement

  @Override
  public QualityAssessment next() throws NoSuchElementException {
    logger.info("Retrieve next element from the iterator for type <{}>", clss);
   
    // get the next index element
    IndexElement elem = iterator.next().getValue();
    // read the xml snippet
    String xmlSnippet = index.readXML(elem);
    try {
      // unmarshal this element
      Object temp = unmarshaller.unmarshal(xmlSnippet);
View Full Code Here

Examples of psidev.psi.tools.xxindex.index.IndexElement

  @Override
  public T next() throws NoSuchElementException {
    logger.info("Retrieve next element from the iterator for type <{}>", clss);
   
    // get the next index element
    IndexElement elem = iterator.next().getValue();
    // read the xml snippet
    String xmlSnippet = index.readXML(elem);
    // unmarshal this element
    return unmarshaller.unmarshal(xmlSnippet, clss);
  }
View Full Code Here

Examples of psidev.psi.tools.xxindex.index.IndexElement

   */
  public String getXMLSnippet(@SuppressWarnings("rawtypes") Class cls, String id) {
        // check if a mapping for the given class with the given ID exists
    Map<String, IndexElement> mapping = idMap.get(cls);
    if(mapping != null) {
      IndexElement elem = mapping.get(id);
      if(elem != null)
              return readXML(elem);
      else
        return null;
    }
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.