Constructor and Description |
---|
DefaultExiter(java.awt.Window mainViewFrame)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addExiterListener(ExiterListener listener)
Adds an
ExiterListener to be notified. |
static void |
callExit(int returnCode)
Calls
System.exit(int) or does nothing depending on the user's
settings. |
void |
doExit(int returnCode)
Exits the application.
|
void |
removeExiterListener(ExiterListener listener)
Removes an
ExiterListener to be notified. |
public DefaultExiter(@NotNull java.awt.Window mainViewFrame)
mainViewFrame
- the main window's framepublic void addExiterListener(@NotNull ExiterListener listener)
ExiterListener
to be notified.addExiterListener
in interface Exiter
listener
- the listenerpublic void removeExiterListener(@NotNull ExiterListener listener)
ExiterListener
to be notified.removeExiterListener
in interface Exiter
listener
- the listenerpublic void doExit(int returnCode)
public static void callExit(int returnCode)
System.exit(int)
or does nothing depending on the user's
settings.returnCode
- the return code to pass