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