Interface Application.ExitListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canExit​(java.util.EventObject event)
      The method is called before the Application exits.
      void willExit​(java.util.EventObject event)
      The method is called after the exit has been confirmed.
    • Method Detail

      • canExit

        boolean canExit​(java.util.EventObject event)
        The method is called before the Application exits.
        Parameters:
        event - the EventObject object. It will be the the value passed to exit().
        Returns:
        true if application can proceed with shutdown process; false if there are pending decisions that the user must make before the app exits.
      • willExit

        void willExit​(java.util.EventObject event)
        The method is called after the exit has been confirmed.
        Parameters:
        event - the EventObject object. It will be the the value passed to exit().