Class ClickAlarmDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ClickAlarmDialog extends PamDialog implements ActionListener
See Also:
  • Method Details

    • showDialog

      public static ClickParameters showDialog(Frame parentFrame, ClickParameters clickParameters)
    • 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
    • setParams

      public void setParams(ClickParameters clickParameters)
      Gets the values from ClickParameters and displays them in the GUI
      Parameters:
      clickParameters - the object holding the parameters to be displayed
    • prepareComboBox

      public void prepareComboBox()
      Sorts the ClickAlarmList arrayList by alarm name, removes all the previous alarm names from the JComboBox and reloads the new list
    • 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
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      ActionListener events for the GUI components
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e -
    • getNextAlarmName

      public String getNextAlarmName()
      Looks through the current list of alarms and returns a unique alarm name
      Returns:
      a unique alarm name
    • browseFiles

      public void browseFiles()
      Allow the user to select a wav file
    • getParams

      public boolean getParams()
      Takes the current values on the screen and loads them into the ClickParameters object
      Specified by:
      getParams in class PamDialog
      Returns: