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

Examples of org.pentaho.reporting.engine.classic.core.function.RowBandingFunction


    {
      final boolean startState = "true".equals(attrs.getValue(getUri(), "startState"));
      final int itemCount = ParserUtil.parseInt
          (attrs.getValue(getUri(), "switchItemCount"), "Failed to parse", getLocator());

      result = new RowBandingFunction();
      result.setVisibleBackground(color);
      result.setInitialState(startState);
      result.setNumberOfElements(itemCount);
    }
  }
View Full Code Here


        ElementAlignment.MIDDLE,//change to ElementAlignment.TOP
        new FontDefinition("dialog", 12),
        "-",
        "column"));

    RowBandingFunction switchFunction = new RowBandingFunction();
    switchFunction.setInitialState(true);
    switchFunction.setNumberOfElements(1);
    report.getExpressions().add(switchFunction);

    report.getReportConfiguration().setConfigProperty("org.pentaho.reporting.engine.classic.core.layout.fontrenderer.UseMaxCharBounds", Boolean.TRUE.toString());

    DefaultTableModel tm1 = new DefaultTableModel(new Object[][]{{"1"}, {"2"}, {"3"}, {"4"}, {"5"}, {"6"}, {"7"}, {"8"}, {"9"}}, new Object[]{"column"});
View Full Code Here

    sum.setName("sum");
    sum.setField("Population");
    sum.setGroup("Continent Group");
    functions.add(sum);

    final RowBandingFunction backgroundTrigger = new RowBandingFunction();
    backgroundTrigger.setName("backgroundTrigger");
    functions.add(backgroundTrigger);

    return functions;
  }
View Full Code Here

    else
    {
      dialog = new RowBandingDialog();
    }

    final RowBandingFunction function = findRowbandingFunction(activeContext);
    final AbstractReportDefinition report = activeContext.getReportDefinition();
    if (function == null)
    {
      final RowBandingFunction newFunction = new RowBandingFunction();
      if (dialog.performEdit(newFunction))
      {
        report.getExpressions().add(newFunction);
        activeContext.getUndo().addChange(ActionMessages.getString("EditRowBandingAction.Text"),
            new ExpressionAddedUndoEntry(report.getExpressions().size() - 1, newFunction));
        report.notifyNodeChildAdded(function);
      }
    }
    else
    {
      final RowBandingFunction instance = (RowBandingFunction) function.getInstance();
      if (dialog.performEdit(instance))
      {
        final ExpressionCollection expressionCollection = report.getExpressions();
        final int idx = expressionCollection.indexOf(function);
        expressionCollection.set(idx, instance);
View Full Code Here

    sum.setName("sum");
    sum.setField("Population");
    sum.setGroup("Continent Group");
    functions.add(sum);

    final RowBandingFunction backgroundTrigger = new RowBandingFunction();
    backgroundTrigger.setName("backgroundTrigger");
    functions.add(backgroundTrigger);

    return functions;
  }
View Full Code Here

    {
      final boolean startState = "true".equals(attrs.getValue(getUri(), "startState"));
      final int itemCount = ParserUtil.parseInt
          (attrs.getValue(getUri(), "switchItemCount"), "Failed to parse", getLocator());

      result = new RowBandingFunction();
      result.setVisibleBackground(color);
      result.setInitialState(startState);
      result.setNumberOfElements(itemCount);
    }
  }
View Full Code Here

      dialog = new RowBandingDialog();
    }

    SwingUtil.centerDialogInParent(dialog);

    final RowBandingFunction function = findRowbandingFunction(activeContext);
    final AbstractReportDefinition report = activeContext.getReportDefinition();
    if (function == null)
    {
      final RowBandingFunction newFunction = new RowBandingFunction();
      if (dialog.performEdit(newFunction))
      {
        report.getExpressions().add(newFunction);
        activeContext.getUndo().addChange(ActionMessages.getString("EditRowBandingAction.Text"),
            new ExpressionAddedUndoEntry(report.getExpressions().size() - 1, newFunction));
        report.notifyNodeChildAdded(function);
      }
    }
    else
    {
      final RowBandingFunction instance = (RowBandingFunction) function.getInstance();
      if (dialog.performEdit(instance))
      {
        final ExpressionCollection expressionCollection = report.getExpressions();
        final int idx = expressionCollection.indexOf(function);
        expressionCollection.set(idx, instance);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.function.RowBandingFunction

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.