Class FormulaEditorPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.pentaho.openformula.ui.FormulaEditorPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, FieldDefinitionSource

public class FormulaEditorPanel extends JComponent implements FieldDefinitionSource
See Also:
  • Constructor Details

    • FormulaEditorPanel

      public FormulaEditorPanel()
  • Method Details

    • getEditorModel

      public FormulaEditorModel getEditorModel()
    • getDocSyncHandler

      public org.pentaho.openformula.ui.FormulaEditorPanel.DocumentSyncHandler getDocSyncHandler()
    • setDocSyncHandler

      public void setDocSyncHandler(org.pentaho.openformula.ui.FormulaEditorPanel.DocumentSyncHandler docSyncHandler)
    • getFunctionParameterEditor

      protected MultiplexFunctionParameterEditor getFunctionParameterEditor()
    • insertText

      protected void insertText(String text)
    • getOperatorPanel

      public JToolBar getOperatorPanel()
    • setEditor

      public void setEditor(String function, FunctionParameterEditor editor)
    • getEditor

      public FunctionParameterEditor getEditor(String function)
    • getFunctionTextArea

      public JTextArea getFunctionTextArea()
    • init

      protected void init()
    • createOperatorPanel

      protected JToolBar createOperatorPanel()
    • getParameterUpdateHandler

      public FormulaEditorPanel.ParameterUpdateHandler getParameterUpdateHandler()
    • getFormulaText

      public String getFormulaText()
    • setFormulaText

      public void setFormulaText(String formulaText)
    • setFields

      public void setFields(FieldDefinition[] fields)
    • getFields

      public FieldDefinition[] getFields()
      Specified by:
      getFields in interface FieldDefinitionSource
    • revalidateParameters

      protected void revalidateParameters(boolean switchParameterEditor)
      Re-validate the parameters of the selected formula.
      Parameters:
      switchParameterEditor - - if true, then the parameter editor will adjust to correspond to formula in the formula text-area. This prevents parameter editor from changing while user is entering an embedded formula.
    • revalidateFormulaSyntax

      protected void revalidateFormulaSyntax()