Package hec.tcu
Class CheckForInterimTermsAction
java.lang.Object
javax.swing.AbstractAction
hec.tcu.CheckForInterimTermsAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
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:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
True if the file exists, false if the file does not exist.protected abstract AcknowledgeInterimTermsFileDialog
createDialog
(Window parent, String title, Path tcuFile) Create the dialogprotected Path
void
Will show the dialog if the user has not opted out of seeing it for this version, and the file exists.void
Will always show the dialog if the file exists, even if the user has opted out.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
CheckForInterimTermsAction
-
-
Method Details
-
createDialog
protected abstract AcknowledgeInterimTermsFileDialog createDialog(Window parent, String title, Path tcuFile) Create the dialog- Parameters:
parent
- The dialog's parenttitle
- The dialog's titletcuFile
- The file to display- Returns:
- The dialog
-
actionPerformed
-
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
- Returns:
- The Path to the Interim Terms file.
-