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

Examples of org.pentaho.reporting.engine.classic.core.CrosstabCellBody.addElement()


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

    return null;
View Full Code Here


      {
        // 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

    public void redo(final ReportDocumentContext renderContext)
    {
      final CrosstabCellBody selectedGroup = (CrosstabCellBody)
              ModelUtility.findElementById(renderContext.getReportDefinition(), target);
      selectedGroup.addElement(cell);
    }

    public UndoEntry merge(final UndoEntry newEntry)
    {
      return null;
View Full Code Here

      body.setHeader(detailsHeaderReadHandler.getElement());
    }
    for (int i = 0; i < crosstabCellReadHandlers.size(); i++)
    {
      final CrosstabCellReadHandler readHandler = crosstabCellReadHandlers.get(i);
      body.addElement(readHandler.getElement());
    }
  }
}
View Full Code Here

      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);
    }
  }

  public CrosstabColumnGroup getElement()
View Full Code Here

    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
    final CrosstabCell cell = new CrosstabCell();
    cell.addElement(createFieldItem("Data"));
    body.addElement(cell);
    return crosstabGroup;
  }

  public static Element createDataItem(final String text)
  {
View Full Code Here

    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
    final CrosstabCell cell = new CrosstabCell();
    cell.addElement(createFieldItem("Data"));
    body.addElement(cell);
    return crosstabGroup;
  }

  public static Element createDataItem(final String text)
  {
View Full Code Here

    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
    final CrosstabCell cell = new CrosstabCell();
    cell.addElement(createFieldItem("Data"));
    body.addElement(cell);
    return crosstabGroup;
  }

  public static Element createDataItem(final String text)
  {
View Full Code Here

  }

  protected CrosstabCellBody createCellBody()
  {
    final CrosstabCellBody cellBody = new CrosstabCellBody();
    cellBody.addElement(createDetailsCell("details-cell", null, null));
    setupDetailsHeader(cellBody.getHeader());
    return cellBody;
  }

  private GroupBody createOtherGroups(GroupBody body)
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.