Class CloseContentOnWindowClose

java.lang.Object
java.awt.event.WindowAdapter
org.ka2ddo.yaac.gui.util.CloseContentOnWindowClose
All Implemented Interfaces:
WindowFocusListener, WindowListener, WindowStateListener, EventListener

public class CloseContentOnWindowClose extends WindowAdapter
This class provides a common function of closing down the dynamic contents of a closed Window. Windows that are real-time monitoring traffic can be deregistered automatically upon close.
Author:
Andrew Pavlin, KA2DDO
  • Constructor Details

    • CloseContentOnWindowClose

      public CloseContentOnWindowClose(Closeable content)
      Create a WindowListener that will release resources owned by the window when it is closed.
      Parameters:
      content - Closeable object to close when the Window this listener is attached to is closed
  • Method Details