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

Examples of org.pentaho.reporting.engine.classic.core.Band.clear()


  public static Band findGeneratedContent(final Band band)
  {
    final Band generatedContentInternal = findGeneratedContentInternal(band);
    if (generatedContentInternal != null)
    {
      generatedContentInternal.clear();
      return generatedContentInternal;
    }

    if (band.getElementCount() == 0)
    {
View Full Code Here


      header.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
    }
    if (footer != null)
    {
      footer.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
      footer.clear();
    }

    final float[] widths = computeFieldWidths(fieldDescriptions, definition.getPageDefinition().getWidth());
    for (int i = 0; i < fieldDescriptions.length; i++)
    {
View Full Code Here

        (aggFunctionClass, computeElementType(groupDefinition),
            groupDefinition.getGroupName(), groupDefinition.getField());
    footerValueElement.setAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFormatData", footer);
    footerValueElement.setAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFieldData", groupDefinition);

    content.clear();
    content.addElement(footerValueElement);

  }

  private ElementType computeElementType(final FieldDefinition fieldDefinition)
View Full Code Here

    {
      // there is already some content, and we are not allowed to override it.
      return;
    }

    content.clear();

    final Element watermarkImage = new Element();
    watermarkImage.setElementType(new ContentType());
    watermarkImage.setAttribute
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, watermarkDefinition.getSource());
View Full Code Here

        headerElement.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, length.getNormalizedValue());
      }
      headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFormatData", headerDefinition);
      headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFieldData", groupDefinition);

      content.clear();
      content.addElement(headerElement);
    }
  }

  private void configureRelationalGroupHeader(final Group group,
View Full Code Here

  public static Band findGeneratedContent(final Band band)
  {
    final Band generatedContentInternal = findGeneratedContentInternal(band);
    if (generatedContentInternal != null)
    {
      generatedContentInternal.clear();
      return generatedContentInternal;
    }

    if (band.getElementCount() == 0)
    {
View Full Code Here

    {
      // there is already some content, and we are not allowed to override it.
      return;
    }

    content.clear();

    final Element watermarkImage = new Element();
    watermarkImage.setElementType(new ContentType());
    watermarkImage.setAttribute
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, watermarkDefinition.getSource());
View Full Code Here

      header.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
    }
    if (footer != null)
    {
      footer.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
      footer.clear();
    }

    final float[] widths = computeFieldWidths(fieldDescriptions, definition.getPageDefinition().getWidth());
    for (int i = 0; i < fieldDescriptions.length; i++)
    {
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.