com.isti.quakewatch.guiutil
Class QWCfgSettingsDialog

java.lang.Object
  extended by com.isti.util.propertyeditor.CfgSettingsDialog
      extended by com.isti.quakewatch.guiutil.QWCfgSettingsDialog

public class QWCfgSettingsDialog
extends CfgSettingsDialog

Class QWCfgSettingsDialog manages a QuakeWatch configuration-settings dialog.


Constructor Summary
QWCfgSettingsDialog(ProgramInformationInterface progInfo, AlertEmailSender alertEmailSender)
          Creates a manager for a QuakeWatch configuration-settings dialog.
 
Method Summary
 void createSettingsDialog()
          Creates the "Settings" dialog.
 void createSettingsDialog(boolean addListenerFlag)
          Creates the "Settings" dialog.
 AlertEmailSender getAlertEmailSender()
          Gets the 'AlertEmailSender' object.
 void setupSettingsDialog()
          Sets up the "Settings" dialog.
 boolean showEmailPropsNotReadyDialog(boolean waitFlag)
          Displays the email-settings-not-ready dialog and then, if the user hits the 'OK' button, the configuration-settings dialog.
 boolean showEmailPropsNotReadyDialog(boolean waitFlag, boolean modalFlag)
          Displays the email-settings-not-ready dialog and then, if the user hits the 'OK' button, the configuration-settings dialog.
 
Methods inherited from class com.isti.util.propertyeditor.CfgSettingsDialog
clearCfgPropertyInspector, getCfgPropertyInspector, getProgramInformation, showSettingsDialog, showSettingsDialog, showSettingsDialog, showSettingsDialog, showSettingsManualDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QWCfgSettingsDialog

public QWCfgSettingsDialog(ProgramInformationInterface progInfo,
                           AlertEmailSender alertEmailSender)
Creates a manager for a QuakeWatch configuration-settings dialog.

Parameters:
progInfo - the program information.
alertEmailSender - the alert email sender.
Method Detail

createSettingsDialog

public void createSettingsDialog(boolean addListenerFlag)
Creates the "Settings" dialog.

Parameters:
addListenerFlag - true to add listener for saving configuration and checking if email props not ready.

createSettingsDialog

public void createSettingsDialog()
Creates the "Settings" dialog. A listener for saving configuration and checking if email props not ready is added.

Overrides:
createSettingsDialog in class CfgSettingsDialog

getAlertEmailSender

public AlertEmailSender getAlertEmailSender()
Gets the 'AlertEmailSender' object.

Returns:
the 'AlertEmailSender' object.

setupSettingsDialog

public void setupSettingsDialog()
Sets up the "Settings" dialog.

Overrides:
setupSettingsDialog in class CfgSettingsDialog

showEmailPropsNotReadyDialog

public final boolean showEmailPropsNotReadyDialog(boolean waitFlag,
                                                  boolean modalFlag)
Displays the email-settings-not-ready dialog and then, if the user hits the 'OK' button, the configuration-settings dialog.

Parameters:
waitFlag - true to make this method block until the configuration-settings dialog is closed (even if 'modalFlag'==false).
modalFlag - true for a modal email-settings-not-ready dialog, false for non-modal.
Returns:
true if the user hit the 'OK' button; false if not.

showEmailPropsNotReadyDialog

public final boolean showEmailPropsNotReadyDialog(boolean waitFlag)
Displays the email-settings-not-ready dialog and then, if the user hits the 'OK' button, the configuration-settings dialog. The email-settings-not-ready dialog is modal.

Parameters:
waitFlag - true to make this method block until the configuration-settings dialog is closed.
Returns:
true if the user hit the 'OK' button; false if not.