Package hec.tcu

Class CheckForInterimTermsAction

java.lang.Object
javax.swing.AbstractAction
hec.tcu.CheckForInterimTermsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public abstract class CheckForInterimTermsAction extends AbstractAction
An action that will attempt to show the 'Interim Software Release Terms and Conditions.html' file in the application install directory via an AcknowledgeInterimTermsFileDialog.
See Also:
  • Constructor Details

    • CheckForInterimTermsAction

      protected CheckForInterimTermsAction(Window parent)
  • Method Details

    • createDialog

      protected abstract AcknowledgeInterimTermsFileDialog createDialog(Window parent, String title, Path tcuFile)
      Create the dialog
      Parameters:
      parent - The dialog's parent
      title - The dialog's title
      tcuFile - The file to display
      Returns:
      The dialog
    • actionPerformed

      public void actionPerformed(ActionEvent e)
    • showIfAppropriate

      public void showIfAppropriate()
      Will show the dialog if the user has not opted out of seeing it for this version, and the file exists.
    • showIfFileExists

      public void showIfFileExists()
      Will always show the dialog if the file exists, even if the user has opted out.
    • betaFileExists

      public boolean betaFileExists()
      True if the file exists, false if the file does not exist.
    • getInterimTermsFilepath

      protected Path getInterimTermsFilepath()
      Returns:
      The Path to the Interim Terms file.