Package com.sun.star.report.pentaho.model

Examples of com.sun.star.report.pentaho.model.ReportElement


        for (int i = 0; i < nodes.length; i++)
        {
            final Node child = nodes[i];
            if (child instanceof ReportElement && child.isEnabled())
            {
                final ReportElement element = (ReportElement) child;
                if (element.getFormatConditionCount() > 0)
                {
                    final Expression displayCond = element.getDisplayCondition();
                    if (displayCond != null)
                    {
                        try
                        {
                            if (Boolean.FALSE.equals(LayoutControllerUtil.evaluateExpression(getFlowController(), element, displayCond)))
                            {
                                continue;
                            }
                        }
                        catch (DataSourceException e)
                        {
                            // ignore silently ..
                        }
                    }

                    final FormatCondition[] conditions = element.getFormatConditions();
                    for (int j = 0; j < conditions.length; j++)
                    {
                        final FormatCondition formCond = conditions[j];
                        if (formCond.isEnabled())
                        {
View Full Code Here


    for (int i = 0; i < nodes.length; i++)
    {
      final Node child = nodes[i];
      if (child instanceof ReportElement)
      {
        final ReportElement element = (ReportElement) child;
        if (element.isEnabled() == false)
        {
          continue;
        }

        if (element.getFormatConditionCount() == 0)
        {
          continue;
        }

        final Expression displayCond = element.getDisplayCondition();
        if (displayCond != null)
        {
          try
          {
            if (Boolean.FALSE.equals(LayoutControllerUtil.evaluateExpression
                (getFlowController(), element, displayCond)))
            {
              continue;
            }
          }
          catch (DataSourceException e)
          {
            // ignore silently ..
          }
        }

        final FormatCondition[] conditions = element.getFormatConditions();
        for (int j = 0; j < conditions.length; j++)
        {
          final FormatCondition formCond = conditions[j];
          if (formCond.isEnabled() == false)
          {
View Full Code Here

    {
      throw new IllegalStateException();
    }

    boolean isPrintableContent = true;
    final ReportElement text = (ReportElement) getNode();
    // Tests we have to perform:
    // 1. Print when group changes. We can know whether a group changed by
    //    looking at the newly introduced iteration counter.
    //
    //    Whether we use the next one or the one after that depends on whether
    //    this element is a child of a group-header or group-footer.
    if (text.isPrintWhenGroupChanges())
    {
      // if this is set to true, then we print the element only if this is the
      // first occurrence in this group.
      if (isGroupChanged() == false)
      {
//        Log.debug ("Group Change Condition");
        isPrintableContent = false;
      }
    }

    // 2. Print repeated values. This never applies to static text or static
    //    elements.
    if (text.isPrintRepeatedValues() == false)
    {
      // If this is set to true, we evaluate the formula of the element and
      // try to derive whether there was a change.
      if (isValueChanged() == false)
      {
//        Log.debug ("Value Repeat Condition");
        isPrintableContent = false;
      }
    }

    // 3. Evaluate the Display Condition
    final Expression dc = text.getDisplayCondition();
    if (dc != null)
    {
      final Object o = LayoutControllerUtil.evaluateExpression
          (getFlowController(), text, dc);
      if (Boolean.FALSE.equals(o))
View Full Code Here

TOP

Related Classes of com.sun.star.report.pentaho.model.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.