Class CalculationControl

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Control, MainFrame, AppFrame, Hidable

public class CalculationControl extends OSPControl
A Control class for Calculations. The GUI consisting of an input table and calculate and reset buttons designed to control a Calculation.
Version:
1.0
Author:
Wolfgang Christian, Joshua Gould
See Also:
  • Field Details

  • Constructor Details

    • CalculationControl

      public CalculationControl(Calculation _calculation)
      The CalculationControl constructor.
      Parameters:
      _calculation -
  • Method Details

    • getMainFrame

      public OSPFrame getMainFrame()
      Gets this frame. Implementation of MainFrame interface.
      Specified by:
      getMainFrame in interface MainFrame
      Overrides:
      getMainFrame in class OSPControl
      Returns:
      OSPFrame
    • refreshGUI

      protected void refreshGUI()
      Refreshes the user interface in response to display changes such as the Language.
      Overrides:
      refreshGUI in class OSPControl
    • createApp

      public static CalculationControl createApp(Calculation model)
      Creates a calculation control and establishes communication between the control and the model.
      Parameters:
      model -
      Returns:
      CalculationControl
    • createApp

      public static CalculationControl createApp(Calculation model, String[] xml)
      Creates a calculation control and establishes communication between the control and the model. Initial parameters are set using the xml data.
      Parameters:
      model - Calculation
      xml - String[]
      Returns:
      CalculationControl