Class DefaultExiter

  • All Implemented Interfaces:
    Exiter

    public class DefaultExiter
    extends java.lang.Object
    implements Exiter
    Exits the application.
    • Constructor Detail

      • DefaultExiter

        public DefaultExiter​(@NotNull
                             @NotNull java.awt.Window mainViewFrame)
        Creates a new instance.
        Parameters:
        mainViewFrame - the main window's frame
    • Method Detail

      • doExit

        public void doExit​(int returnCode)
        Description copied from interface: Exiter
        Exits the application.
        Specified by:
        doExit in interface Exiter
        Parameters:
        returnCode - the application's return code
      • callExit

        public static void callExit​(int returnCode)
        Calls System.exit(int) or does nothing depending on the user's settings.
        Parameters:
        returnCode - the return code to pass