Examples of ReportStateKey


Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

  private void updateStateKey(final RenderBox box)
  {
    final long y = box.getY();
    if (y < (pageEnd))
    {
      final ReportStateKey stateKey = box.getStateKey();
      if (stateKey != null)
      {
        this.visualState = stateKey;
      }
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

  private boolean updateStateKeyDeep(final RenderBox box)
  {
    final long y = box.getY();
    if (y < (pageEnd))
    {
      final ReportStateKey stateKey = box.getStateKey();
      if (stateKey != null)
      {
//        Log.debug ("Deep: Updating state key: " + stateKey);
        this.visualState = stateKey;
        return true;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

    {
      throw new IllegalStateException();
    }

    // we need to execute the state until it returns ..
    final ReportStateKey processKey = state.getProcessKey();
    ProcessState process = new ProcessState();
    process.initializeForSubreport(markers, index, state);
    while (processKey.equals(process.getProcessKey()) == false)
    {
      process = process.advance();
      if (processKey.equals(process.getProcessKey()))
      {
        throw new IllegalStateException("You cannot switch contexts when not being commited!");
      }
      process = process.commit();
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

    this.currentPage = ReportState.BEFORE_FIRST_PAGE;
    this.currentSubReport = -1;
    this.currentGroupIndex = ReportState.BEFORE_FIRST_GROUP;
    this.functionStorage = new FunctionStorage();
    this.structureFunctionStorage = new FunctionStorage();
    this.processKey = new ReportStateKey
        (null, ReportState.BEFORE_FIRST_ROW, 0, 0, ReportState.BEFORE_FIRST_GROUP, -1, sequenceCounter, false);
    this.dataFactoryManager = new DataFactoryManager();
    this.subReportStorage = new SubReportStorage();
    this.processHandle = new InternalProcessHandle(dataFactoryManager);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

    {
      throw new IllegalStateException();
    }
    state.setAdvanceHandler(BeginReportHandler.HANDLER);

    final ReportStateKey parentStateKey;
    final ReportState parentState = this.getParentSubReportState();
    if (parentState == null)
    {
      parentStateKey = null;
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

  private ReportStateKey createKey()
  {
    if (parentState != null)
    {
      return new ReportStateKey(parentState.createKey(),
          getCurrentDataItem(), getCurrentCrosstabPaddingItem(), getEventCode(),
          getCurrentGroupIndex(), getCurrentSubReport(), sequenceCounter, advanceHandler.isRestoreHandler());
    }

    return new ReportStateKey(null, getCurrentDataItem(), getCurrentCrosstabPaddingItem(),
        getEventCode(), getCurrentGroupIndex(), getCurrentSubReport(),
        sequenceCounter, advanceHandler.isRestoreHandler());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

    }
    else
    {
      next.setAdvanceHandler(EndReportHandler.HANDLER);
    }
    final ReportStateKey parentStateKey;
    final ReportState parentState = next.getParentSubReportState();
    if (parentState == null)
    {
      parentStateKey = null;
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

   */
  public void groupStarted(final ReportEvent event)
  {
    if (FunctionUtilities.isDefinedGroup(getGroup(), event))
    {
      final ReportStateKey groupStateKey = event.getState().getProcessKey();
      if (FunctionUtilities.isDefinedPrepareRunLevel(this, event))
      {
        result = new Sequence<Object>();
        lastGroupSequenceNumber = 0;

View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

   */
  public void groupStarted(final ReportEvent event)
  {
    if (FunctionUtilities.isDefinedGroup(getGroup(), event))
    {
      final ReportStateKey groupStateKey = event.getState().getProcessKey();
      if (FunctionUtilities.isDefinedPrepareRunLevel(this, event))
      {
        result = new Sequence<Comparable>();
        lastGroupSequenceNumber = 0;

View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.states.ReportStateKey

   */
  public void groupStarted(final ReportEvent event)
  {
    if (FunctionUtilities.isDefinedGroup(getGroup(), event))
    {
      final ReportStateKey groupStateKey = event.getState().getProcessKey();
      if (FunctionUtilities.isDefinedPrepareRunLevel(this, event))
      {
        result = new Sequence<Comparable>();
        lastGroupSequenceNumber = 0;

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.