Class SetupPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public abstract class SetupPanel extends BasePanel
Panel with support for handling setup via props file.
Version:
$Revision$
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • SetupPanel

      public SetupPanel()
      Initializes the panel with BorderLayout.
    • SetupPanel

      public SetupPanel(LayoutManager layout)
      Initializes the panel.
      Parameters:
      layout - the layout to use
  • Method Details

    • finishInit

      protected void finishInit()
      Finishes up the initialization.
      Overrides:
      finishInit in class BasePanel
    • propsToGUI

      protected abstract void propsToGUI(Properties props)
      Maps the properties back to the GUI.
      Parameters:
      props - the properties to use
    • loadSetup

      protected void loadSetup()
      Attempts to load a previous setup from a props file.
    • guiToProps

      protected abstract Properties guiToProps()
      Maps the GUI to a properties object.
      Returns:
      the properties
    • saveSetup

      protected void saveSetup()
      Saves the current setup in a props file.