Package megameklab.ui.util
Interface AppCloser
- All Known Subinterfaces:
MenuBarOwner
- All Known Implementing Classes:
MegaMekLabTabbedUI,StartupGUI
public interface AppCloser
This interface may implemented by all windows that exit the application. They may override the exit() method to
provide exit handling such as saving global preferences or window settings or show a safety dialog before exiting.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanexit()Override to provide specific exit handling.
-
Method Details
-
exit
default boolean exit()Override to provide specific exit handling. Return false to prevent exiting the application, true to confirm it. By default, this method does nothing and returns true.- Returns:
- False to prevent exiting, true to confirm
-