Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.ReportElement


  protected void traverseSectionWithSubReports(final Section section)
  {
    final int count = section.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = section.getElement(i);
      if (element instanceof SubReport)
      {
        inspect((SubReport) element);
      }
      else if (element instanceof Section)
View Full Code Here


  protected void traverseSectionWithoutSubReports(final Section section)
  {
    final int count = section.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = section.getElement(i);
      if (element instanceof SubReport)
      {
        inspectElement(element);
      }
      else if (element instanceof Section)
View Full Code Here

            writeBackgroundCell(background, xmlWriter);
            continue;
          }


          ReportElement content = elements.get(gridCell.getInstanceId());
          FastHtmlStyleCache.CellStyle cellStyle = computeCellAttributes(styleCache, row, col, gridCell, content);

          if (content == null)
          {
            xmlWriter.writeTag(HtmlPrinter.XHTML_NAMESPACE, "td", cellStyle.getCellAttributeList(), XmlWriterSupport.OPEN);
            if (emptyCellsUseCSS == false)
            {
              xmlWriter.writeText("&nbsp;");
            }
            xmlWriter.writeCloseTag();
            continue;
          }

          xmlWriter.writeTag(HtmlPrinter.XHTML_NAMESPACE, "td", cellStyle.getCellAttributeList(), XmlWriterSupport.OPEN);

          final Object rawContent = content.getAttribute(AttributeNames.Html.NAMESPACE, AttributeNames.Html.EXTRA_RAW_CONTENT);
          if (rawContent != null)
          {
            xmlWriter.writeText(String.valueOf(rawContent));
          }

          writeAnchors(xmlWriter, content);
          if (Boolean.TRUE.equals(content.getAttributes().getAttribute(AttributeNames.Html.NAMESPACE,
              AttributeNames.Html.SUPPRESS_CONTENT)) == false)
          {
            // the style of the content-box itself is already contained in the <td> tag. So there is no need
            // to duplicate the style here
            if (textExtractor.performOutput(content, cellStyle.getCellStyle(), recordedBounds, runtime) == false)
            {
              if (emptyCellsUseCSS == false)
              {
                xmlWriter.writeText("&nbsp;");
              }
            }
          }

          final Object rawFooterContent = content.getAttributes().getAttribute(AttributeNames.Html.NAMESPACE,
              AttributeNames.Html.EXTRA_RAW_FOOTER_CONTENT);
          if (rawFooterContent != null)
          {
            xmlWriter.writeText(String.valueOf(rawFooterContent));
          }
View Full Code Here

    if (inspectStartSection(section, inlineSection))
    {
      final int count = section.getElementCount();
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = section.getElement(i);
        if (element instanceof SubReport)
        {
          inspectStartSection(element,  inlineSection);
          inspectElement(element, inlineSection);
          inspectEndSection(element,  inlineSection);
View Full Code Here

    Object lastElement = null;
    final ReportElement[] elements = dataBackend.getData();
    if (elements.length > 0)
    {
      final ReportElement element = elements[0];
      lastElement = element.getAttribute(metaData.getNameSpace(), metaData.getName());
    }
    if (lastElement != null)
    {
      fullValues[row] = lastElement;
    }
View Full Code Here

      // once the selection changed, we will get informed through other channels.
      final Object element = event.getElement();
      final ReportElement[] data = getData();
      for (int i = 0; i < data.length; i++)
      {
        final ReportElement reportElement = data[i];
        if (element == reportElement)
        {
          // refresh, dont call stopCellEditing ..
          dataModel.setData(data);
          return;
View Full Code Here

    boolean changed = false;
    final ReportElement[] elements = getAttributeDataBackend().getData();
    final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();
    for (int i = 0; i < elements.length; i++)
    {
      final ReportElement element = elements[i];
      final Object attribute = element.getAttribute(metaData.getNameSpace(), metaData.getName());
      if ((ObjectUtilities.equal(attribute, value)) == false)
      {
        undos.add(new AttributeEditUndoEntry
            (element.getObjectID(), metaData.getNameSpace(), metaData.getName(), attribute, value));
        element.setAttribute(metaData.getNameSpace(), metaData.getName(), value);
        changed = true;
      }
    }
    undo.addChange(Messages.getString("AttributeTableModel.UndoName"),
        new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));
View Full Code Here

    Object lastElement = null;
    final ReportElement[] elements = dataBackend.getData();
    if (elements.length > 0)
    {
      final ReportElement element = elements[0];
      lastElement = element.getAttribute(metaData.getNameSpace(), metaData.getName());
    }
    if (lastElement != null)
    {
      fullValues[row] = lastElement;
    }
View Full Code Here

  {
    final AttributeMap<Object> attributes = new AttributeMap<Object>();
    final ArrayList<AttributeMetaData> selectedArrays = new ArrayList<AttributeMetaData>();
    for (int elementCount = 0; elementCount < elements.length; elementCount++)
    {
      final ReportElement element = elements[elementCount];
      final AttributeMetaData[] datas = element.getMetaData().getAttributeDescriptions();
      for (int j = 0; j < datas.length; j++)
      {
        final AttributeMetaData data = datas[j];

        final String name = data.getName();
View Full Code Here

    boolean changed = false;
    final ReportElement[] elements = getAttributeDataBackend().getData();
    final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();
    for (int i = 0; i < elements.length; i++)
    {
      final ReportElement element = elements[i];
      final Object attribute = element.getAttribute(metaData.getNameSpace(), metaData.getName());
      if ((ObjectUtilities.equal(attribute, value)) == false)
      {
        undos.add(new AttributeEditUndoEntry
            (element.getObjectID(), metaData.getNameSpace(), metaData.getName(), attribute, value));
        element.setAttribute(metaData.getNameSpace(), metaData.getName(), value);
        changed = true;
      }
    }
    undo.addChange(Messages.getString("VisualAttributeTableModel.UndoName"),
        new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ReportElement

Copyright © 2018 www.massapicom. 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.