Class FormulaEditingPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.fho.jump.pirol.plugins.EditAttributeByFormula.FormulaEditingPanel
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ValueChecker

public class FormulaEditingPanel extends JPanel implements ActionListener, ValueChecker
Panel to help the user to create a formula that describes how the value of a new attribute will be calculated.
Version:
$Rev$
Author:
Ole Rahn

FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
See Also:
  • Field Details

    • logger

      protected PersonalLogger logger
    • formulaField

      protected JTextArea formulaField
    • errorMessages

      protected JTextArea errorMessages
    • featureSchema

      protected FeatureSchema featureSchema
    • attributeInfos

      protected AttributeInfo[] attributeInfos
    • numberInputField

      protected JTextField numberInputField
    • storedFormulasDropDown

      protected JComboBox storedFormulasDropDown
    • mathSigns

      protected static final String[] mathSigns
    • parsedFormula

      protected FormulaValue parsedFormula
  • Constructor Details

  • Method Details

    • setupUI

      protected void setupUI()
    • getFormula

      public String getFormula()
      Returns:
      formula as String
    • getParsedFormula

      public FormulaValue getParsedFormula()
      Returns:
      parsed formula as FormulaValue object
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      ... to react on a selection in the stored formula drop down menu ...
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - the event to process
    • areValuesOk

      public boolean areValuesOk()
      Check the formula and return false if it could not be parsed
      Specified by:
      areValuesOk in interface ValueChecker
      Returns:
      false if the formula could not be parsed