Package noaa.coastwatch.gui
Class UpdateAgent
java.lang.Object
java.awt.event.WindowAdapter
noaa.coastwatch.gui.UpdateAgent
- All Implemented Interfaces:
WindowFocusListener
,WindowListener
,WindowStateListener
,EventListener
The
UpdateAgent
class performs an update check on the
network, then pops up an informational dialog if the software is
out of date. The update check is started asynchronously when the
window is made visible for the first time so that no delay occurs.- Since:
- 3.1.7
- Author:
- Peter Hollemans
- See Also:
-
Constructor Summary
ConstructorDescriptionUpdateAgent
(String tool) Creates a new update agent for the specified tool name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
windowOpened
(WindowEvent event) Creates an update check in response to the window being opened for the first time.Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowStateChanged
-
Constructor Details
-
UpdateAgent
Creates a new update agent for the specified tool name.
-
-
Method Details
-
windowOpened
Creates an update check in response to the window being opened for the first time.- Specified by:
windowOpened
in interfaceWindowListener
- Overrides:
windowOpened
in classWindowAdapter
- Parameters:
event
- the window open event.
-