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

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


    final AbstractReportDefinition reportDefinition = renderContext.getReportDefinition();
    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final ElementStyleSheet styleSheet = element.getStyle();
      final Object[] properties = currentStyle[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        styleSheet.setStyleProperty(key, properties[key.identifier]);
View Full Code Here


    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    final InstanceID[] visualElements = getVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final Expression[] properties = oldExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        element.setStyleExpression(key, properties[key.identifier]);
      }
    }
  }
View Full Code Here

    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    final InstanceID[] visualElements = getVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final InstanceID visualElement = visualElements[i];
      final ReportElement element = ModelUtility.findElementById(reportDefinition, visualElement);
      final Expression[] properties = newExpressions[i];
      for (int j = 0; j < keys.length; j++)
      {
        final StyleKey key = keys[j];
        element.setStyleExpression(key, properties[key.identifier]);
      }
    }
  }
View Full Code Here

    this.newValue = newValue;
  }

  public void undo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.getStyle().setStyleProperty(styleKey, oldValue);
  }
View Full Code Here

    elementById.getStyle().setStyleProperty(styleKey, oldValue);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.getStyle().setStyleProperty(styleKey, newValue);
  }
View Full Code Here

    elementById.setStyleExpression(styleKey, oldValue);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setStyleExpression(styleKey, newValue);
  }
View Full Code Here

    this.newValue = newValue;
  }

  public void undo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setAttribute(attributeNamespace, attributeName, oldValue);
  }
View Full Code Here

    elementById.setAttribute(attributeNamespace, attributeName, oldValue);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setAttribute(attributeNamespace, attributeName, newValue);
  }
View Full Code Here

    this.oldValue = oldValue;
  }

  public void undo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setAttributeExpression(attributeNamespace, attributeName, oldValue);
  }
View Full Code Here

    elementById.setAttributeExpression(attributeNamespace, attributeName, oldValue);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final ReportElement elementById = ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setAttributeExpression(attributeNamespace, attributeName, newValue);

  }
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.