Class ClickTypeDialog

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

public class ClickTypeDialog extends PamDialog implements ActionListener
Author:
Doug Gillespie

Dialog for definition of a single click type based on Marjolainie Caillat's MRes work, 2005.

See Also:
  • Method Details

    • showDialog

      public static ClickTypeParams showDialog(Frame parentFrame, ClickControl clickControl, BasicClickIdParameters basicClickIdParameters, ClickTypeParams clickTypeParams)
      New constructor required in order to pass clickControl object, so that we can access the alarm list through clickParameters
      Parameters:
      parentFrame -
      clickControl -
      basicClickIdParameters -
      clickTypeParams -
      Returns:
    • showDialog

      public static ClickTypeParams showDialog(Frame parentFrame, BasicClickIdParameters basicClickIdParameters, ClickTypeParams clickTypeParams)
    • getParams

      public boolean getParams()
      Load the ClickTypeParams object with the current values in the dialog
      Specified by:
      getParams in class PamDialog
      Returns:
      success or failure of the method
    • 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
    • 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)
      Specified by:
      actionPerformed in interface ActionListener
    • restoreDefaultSettingsQ

      public void restoreDefaultSettingsQ()
      Description copied from class: PamDialog
      restore default setting ? Check with user before calling restoreDefaultSettings(); Thsi may be overridden if you want to ask a more complex question or offer options at this point.
      Overrides:
      restoreDefaultSettingsQ in class PamDialog