Package org.pentaho.reporting.engine.classic.wizard.model

Examples of org.pentaho.reporting.engine.classic.wizard.model.Length


    final Float[] widthSpecs = new Float[detailFieldDefinitions.length];
    for (int i = 0; i < detailFieldDefinitions.length; i++)
    {
      final DetailFieldDefinition fieldDefinition = detailFieldDefinitions[i];
      final Length length = fieldDefinition.getWidth();
      if (length == null)
      {
        continue;
      }
      widthSpecs[i] = length.getNormalizedValue();
    }
    final float[] computedWidth =
        AutoGeneratorUtility.computeFieldWidths(widthSpecs, definition.getPageDefinition().getWidth());

View Full Code Here


    final Float[] widthSpecs = new Float[detailFieldDefinitions.length];
    for (int i = 0; i < detailFieldDefinitions.length; i++)
    {
      final DetailFieldDefinition fieldDefinition = detailFieldDefinitions[i];
      final Length length = fieldDefinition.getWidth();
      if (length == null)
      {
        continue;
      }
      widthSpecs[i] = length.getNormalizedValue();
    }
    final float[] computedWidth =
        AutoGeneratorUtility.computeFieldWidths(widthSpecs, definition.getPageDefinition().getWidth());

    itemBand.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
View Full Code Here

        return;
      }

      final Element headerElement = AutoGeneratorUtility.generateDetailsElement
          (groupDefinition.getField(), computeElementType(groupDefinition));
      final Length length = groupDefinition.getWidth();
      if (length != null)
      {
        headerElement.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, length.getNormalizedValue());
      }
      headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFormatData", headerDefinition);
      headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFieldData", groupDefinition);

      content.clear();
View Full Code Here

      final Boolean distinctValues = definition.getOnlyShowChangingValues();
      if (distinctValues != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "only-show-distinct", String.valueOf(distinctValues));
      }
      final Length width = definition.getWidth();
      if (width != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "width", String.valueOf(width));
      }
View Full Code Here

    if (source != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "source", source);
    }

    final Length x = rootBandDefinition.getX();
    if (x != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "x", x.toString());
    }
    final Length y = rootBandDefinition.getY();
    if (y != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "y", y.toString());
    }
    final Length width= rootBandDefinition.getWidth();
    if (width != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "width", width.toString());
    }
    final Length height = rootBandDefinition.getX();
    if (height != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "height", height.toString());
    }

    final boolean visible = rootBandDefinition.isVisible();
    attList.setAttribute(WizardCoreModule.NAMESPACE, "visible", String.valueOf(visible));
View Full Code Here

      final Boolean distinctValues = definition.getOnlyShowChangingValues();
      if (distinctValues != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "only-show-distinct", String.valueOf(distinctValues));
      }
      final Length width = definition.getWidth();
      if (width != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "width", String.valueOf(width));
      }
View Full Code Here

    if (source != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "source", source);
    }

    final Length x = rootBandDefinition.getX();
    if (x != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "x", x.toString());
    }
    final Length y = rootBandDefinition.getY();
    if (y != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "y", y.toString());
    }
    final Length width= rootBandDefinition.getWidth();
    if (width != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "width", width.toString());
    }
    final Length height = rootBandDefinition.getX();
    if (height != null)
    {
      attList.setAttribute(WizardCoreModule.NAMESPACE, "height", height.toString());
    }

    final boolean visible = rootBandDefinition.isVisible();
    attList.setAttribute(WizardCoreModule.NAMESPACE, "visible", String.valueOf(visible));
View Full Code Here

    final Float[] widthSpecs = new Float[detailFieldDefinitions.length];
    for (int i = 0; i < detailFieldDefinitions.length; i++)
    {
      final DetailFieldDefinition fieldDefinition = detailFieldDefinitions[i];
      final Length length = fieldDefinition.getWidth();
      if (length == null)
      {
        continue;
      }
      widthSpecs[i] = length.getNormalizedValue();
    }
    final float[] computedWidth =
        AutoGeneratorUtility.computeFieldWidths(widthSpecs, definition.getPageDefinition().getWidth());

View Full Code Here

    final Float[] widthSpecs = new Float[detailFieldDefinitions.length];
    for (int i = 0; i < detailFieldDefinitions.length; i++)
    {
      final DetailFieldDefinition fieldDefinition = detailFieldDefinitions[i];
      final Length length = fieldDefinition.getWidth();
      if (length == null)
      {
        continue;
      }
      widthSpecs[i] = length.getNormalizedValue();
    }
    final float[] computedWidth =
        AutoGeneratorUtility.computeFieldWidths(widthSpecs, definition.getPageDefinition().getWidth());

    itemBand.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.wizard.model.Length

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.