Package org.pentaho.openformula.ui

Examples of org.pentaho.openformula.ui.FormulaEditorDialog.editFormula()


    public void actionPerformed(final ActionEvent e)
    {
      final JComboBox comboBox = getComboBox();
      final FormulaEditorDialog editorDialog = FormulaFragmentCellEditor.this.createEditorDialog();
      final String originalFormula = (String) comboBox.getSelectedItem();
      final String formula = editorDialog.editFormula(originalFormula, getFields());
      if (formula != null)
      {
        comboBox.setSelectedItem(formula);
      }
      stopCellEditing();
View Full Code Here


      {
        final FormulaEditorDialog editorDialog =
            GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), AbstractStringValueCellEditor.this);

        final String originalFormula = (String) comboBox.getSelectedItem();
        final String formula = editorDialog.editFormula(originalFormula, getFields());
        if (formula != null)
        {
          comboBox.setSelectedItem(formula);
        }
      }
View Full Code Here

      return;
    }
    ReportDesignerBoot.getInstance().start();
    final FormulaEditorDialog dialog =
        GUIUtils.createFormulaEditorDialog(new DefaultReportDesignerContext(new TestReportDesignerView()), null);
    dialog.editFormula("=AND(", new FieldDefinition[0]);
  }
}
View Full Code Here

      if (selectedItem instanceof FormulaExpression)
      {
        final FormulaExpression fe = (FormulaExpression) selectedItem;
        final FormulaEditorDialog dialog = GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), ExpressionEditorPane.this);

        final String formula = dialog.editFormula(fe.getFormula(), getFields());
        if (formula == null)
        {
          // cancel pressed ... do nothing ...
          return;
        }
View Full Code Here

      }
      else
      {
        // assume that we want to edit a formula ..
        final FormulaEditorDialog dialog = GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), ExpressionEditorPane.this);
        final String formula = dialog.editFormula(null, getFields());
        if (formula == null)
        {
          // cancel pressed ... do nothing ...
          return;
        }
View Full Code Here

     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final FormulaEditorDialog dialog = GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), FormulaEditorPanel.this);
      final String formula = dialog.editFormula(formulaField.getText(), computeFields());
      if (formula == null)
      {
        // cancel pressed ... do nothing ...
        return;
      }
View Full Code Here

     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final FormulaEditorDialog dialog = GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), FormulaEditorPanel.this);
      final String formula = dialog.editFormula(formulaField.getText(), computeFields());
      if (formula == null)
      {
        // cancel pressed ... do nothing ...
        return;
      }
View Full Code Here

      if (selectedItem instanceof FormulaExpression)
      {
        final FormulaExpression fe = (FormulaExpression) selectedItem;
        final FormulaEditorDialog dialog = GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), ExpressionEditorPane.this);

        final String formula = dialog.editFormula(fe.getFormula(), getFields());
        if (formula == null)
        {
          // cancel pressed ... do nothing ...
          return;
        }
View Full Code Here

      }
      else
      {
        // assume that we want to edit a formula ..
        final FormulaEditorDialog dialog = GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), ExpressionEditorPane.this);
        final String formula = dialog.editFormula(null, getFields());
        if (formula == null)
        {
          // cancel pressed ... do nothing ...
          return;
        }
View Full Code Here

      {
        final FormulaEditorDialog editorDialog =
            GUIUtils.createFormulaEditorDialog(getReportDesignerContext(), AbstractStringValueCellEditor.this);

        final String originalFormula = (String) comboBox.getSelectedItem();
        final String formula = editorDialog.editFormula(originalFormula, getFields());
        if (formula != null)
        {
          comboBox.setSelectedItem(formula);
        }
      }
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.