Class ClickAlarmDialog

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

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

    • showDialog Link icon

      public static ClickParameters showDialog(Frame parentFrame, ClickParameters clickParameters)
    • cancelButtonPressed Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

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