Class CloseWindowCommandListener

java.lang.Object
org.ka2ddo.yaac.gui.CloseWindowCommandListener
All Implemented Interfaces:
ActionListener, EventListener

public final class CloseWindowCommandListener extends Object implements ActionListener
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 Details

    • CloseWindowCommandListener

      public CloseWindowCommandListener(Window window)
      Create a listener to close the specified window upon command.
      Parameters:
      window - Window subclass instance to close
    • CloseWindowCommandListener

      public CloseWindowCommandListener(Component component)
      Create a listener to close the specified window upon command.
      Parameters:
      component - Component whose containing Window subclass instance should be closed
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Do not call. Called when action needs to invoke listener to close window.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - ActionEvent identifying the commanding widget