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

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


    {
      throw new IllegalStateException("A crosstab group can never be without a cell body");
    }

    LinkedHashMap<String, DetailsDefinition> details;
    CrosstabCell element = cellBody.findElement(null, null);
    if (element != null)
    {
      details = extractFromDetailCell(element, cellBody.getHeader());
    }
    else
View Full Code Here


  protected CrosstabCell createDetailsCell(final String name, final String rowDim, final String colDim)
  {
    if (!isDetailsChanged())
    {
      logger.debug(String.format("Found existing details cell " + name));
      final CrosstabCell element = cellBody.findElement(rowDim, colDim);
      if (element != null)
      {
        return element;
      }
    }
View Full Code Here

    if (rawLeadSelection instanceof CrosstabCellBody)
    {
      final CrosstabCellBody body = (CrosstabCellBody) rawLeadSelection;
      if (insert instanceof CrosstabCell)
      {
        final CrosstabCell crosstabCell = (CrosstabCell) insert.derive();
        body.addElement(crosstabCell);
        return crosstabCell;
      }
    }
View Full Code Here

    for (int i = 0; i < count; i++)
    {
      final Element element = crosstabCellBody.getElement(i);
      if (element instanceof CrosstabCell)
      {
        final CrosstabCell cell = (CrosstabCell)element;
        final int cellCount = cell.getElementCount();
        for (int c = 0; c < cellCount; c++)
        {
          final Element cellElement = cell.getElement(c);
          cellBodyList.add(cellElement);
        }
      }
    }
  }
View Full Code Here

      if (selectedElement instanceof CrosstabCellBody)
      {
        // execution order is important here.
        // first unlink the old root-group by setting a new one ...
        final CrosstabCellBody selectedGroup = (CrosstabCellBody) selectedElement;
        final CrosstabCell crosstabCell = new CrosstabCell();
        selectedGroup.addElement(crosstabCell);

        activeContext.getUndo().addChange(ActionMessages.getString("InsertCrosstabCellAction.UndoName"),
            new InsertCellBodyUndoEntry(selectedGroup.getObjectID(), crosstabCell));
      }
View Full Code Here

    {
      final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
      final int elementCount = crosstabCellBody.getElementCount();
      for (int i = 1; i < elementCount; i += 1)
      {
        final CrosstabCell cell = (CrosstabCell) crosstabCellBody.getElement(i);
        if (cell.getRowField() == null)
        {
          processRootBand(cell);
        }
      }
    }
    else if (group instanceof CrosstabRowGroup)
    {
      final CrosstabRowGroup rowGroup = (CrosstabRowGroup) group;
      final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
      final int elementCount = crosstabCellBody.getElementCount();
      for (int i = 1; i < elementCount; i += 1)
      {
        final CrosstabCell cell = (CrosstabCell) crosstabCellBody.getElement(i);
        if (ObjectUtilities.equal(cell.getRowField(), rowGroup.getField()))
        {
          processRootBand(cell);
        }
      }
    }
View Full Code Here

    super("crosstab-cell", true);
  }

  public ReportElement create()
  {
    return new CrosstabCell();
  }
View Full Code Here

    {
      collector.add(band);
    }
    for (int i = 1; i < band.getElementCount(); i+= 1)
    {
      final CrosstabCell b = (CrosstabCell) band.getElement(i);
      if (b.getName().equals(element))
      {
        collector.add(band);
      }
      performFindElement(b, element, collector);
    }
View Full Code Here

    }
    else
    {
      final GroupDataBody element = groupBodyReadHandler.getElement();
      final ItemBand itemBand = element.getItemBand();
      final CrosstabCell cell = new CrosstabCell();
      itemBand.copyInto(cell);
      cell.addElements(Arrays.asList(itemBand.getElementArray()));

      final CrosstabCellBody body = new CrosstabCellBody();
      body.addElement(cell);
      group.setBody(body);
    }
View Full Code Here

    if (crosstabLayout.isDetailsRendered())
    {
      return;
    }

    final CrosstabCell element = dataBody.findElement(null, null);
    if (element != null)
    {
      final CrosstabDetailMode detailMode = crosstabLayout.getDetailMode();
      if (detailMode == null)
      {
View Full Code Here

TOP

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

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.