Class MainFrameClosing

  • All Implemented Interfaces:
    java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

    public class MainFrameClosing
    extends java.awt.event.WindowAdapter
    Save preferences on closing CVD.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private MainFrame main
      The main.
    • Constructor Summary

      Constructors 
      Constructor Description
      MainFrameClosing​(MainFrame frame)
      Instantiates a new main frame closing.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void handleClosingEvent​(MainFrame main)
      Handle closing event.
      void windowClosing​(java.awt.event.WindowEvent e)  
      • Methods inherited from class java.awt.event.WindowAdapter

        windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • main

        private final MainFrame main
        The main.
    • Constructor Detail

      • MainFrameClosing

        public MainFrameClosing​(MainFrame frame)
        Instantiates a new main frame closing.
        Parameters:
        frame - the frame
    • Method Detail

      • windowClosing

        public void windowClosing​(java.awt.event.WindowEvent e)
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
        Overrides:
        windowClosing in class java.awt.event.WindowAdapter
      • handleClosingEvent

        public static void handleClosingEvent​(MainFrame main)
        Handle closing event.
        Parameters:
        main - the main