Package org.ka2ddo.yaac.gui
Class CloseWindowCommandListener
java.lang.Object
org.ka2ddo.yaac.gui.CloseWindowCommandListener
- All Implemented Interfaces:
ActionListener
,EventListener
This is a helper class for the common operation of closing a window widget when commanded to by the user.
- Author:
- Andrew Pavlin, KA2DDO
-
Constructor Summary
ConstructorDescriptionCloseWindowCommandListener
(Component component) Create a listener to close the specified window upon command.CloseWindowCommandListener
(Window window) Create a listener to close the specified window upon command. -
Method Summary
-
Constructor Details
-
CloseWindowCommandListener
Create a listener to close the specified window upon command.- Parameters:
window
- Window subclass instance to close
-
CloseWindowCommandListener
Create a listener to close the specified window upon command.- Parameters:
component
- Component whose containing Window subclass instance should be closed
-
-
Method Details
-
actionPerformed
Do not call. Called when action needs to invoke listener to close window.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
e
- ActionEvent identifying the commanding widget
-