Class SweepClassifierDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, ImportExportUser

public class SweepClassifierDialog extends PamDialog implements ImportExportUser
The dialog for the sweep click classifier.
Author:
Doug Gillespie
See Also:
  • Method Details

    • showDialog

      public static SweepClassifierSet showDialog(Window parentFrame, ClickControl clickControl, SweepClassifier sweepClassifier, SweepClassifierSet sweepClassifierSet)
      New constructor required in order to pass clickControl object, so that we can access the alarm list through clickParameters
      Parameters:
      parentFrame -
      clickControl -
      sweepClassifier -
      sweepClassifierSet -
      Returns:
    • showDialog

      public static SweepClassifierSet showDialog(Window parentFrame, SweepClassifier sweepClassifier, SweepClassifierSet sweepClassifierSet)
    • cancelButtonPressed

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • getParams

      public boolean getParams()
      Description copied from class: PamDialog
      called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog.
      Specified by:
      getParams in class PamDialog
    • restoreDefaultSettings

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog
    • getExportObject

      public SweepClassifierSet getExportObject()
      Description copied from interface: ImportExportUser
      Get the object to export
      Specified by:
      getExportObject in interface ImportExportUser
      Returns:
      object to export
    • setImportObject

      public void setImportObject(Serializable importObject)
      Description copied from interface: ImportExportUser
      Set the imported object.
      Specified by:
      setImportObject in interface ImportExportUser
      Parameters:
      importObject - imported object
    • getExportTypes

      public int getExportTypes()
      Description copied from interface: ImportExportUser
      Get the available types of export. Combination of EXPORT_SERIALIZED and EXPORT_XML.

      Serialised is a little simpler and safer in many ways, but XML is human readable.

      Specified by:
      getExportTypes in interface ImportExportUser
      Returns:
      available types of export
    • getIOClass

      public Class getIOClass()
      Description copied from interface: ImportExportUser
      Get the class of the object input or output
      Specified by:
      getIOClass in interface ImportExportUser
      Returns:
      Class of io object
    • getSettingsWrapper

      public PamSettings getSettingsWrapper()
      Description copied from interface: ImportExportUser
      Get a wrapper for PAM Settings, ideally a PAM Controlled unit which is used to provide a module name and type for exported XML settings.
      Specified by:
      getSettingsWrapper in interface ImportExportUser
      Returns: