Package net.sf.gridarta.mainactions
Class DefaultExiter
- java.lang.Object
-
- net.sf.gridarta.mainactions.DefaultExiter
-
-
Constructor Summary
Constructors Constructor Description DefaultExiter(@NotNull java.awt.Window mainViewFrame)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExiterListener(@NotNull ExiterListener listener)Adds anExiterListenerto be notified.static voidcallExit(int returnCode)CallsSystem.exit(int)or does nothing depending on the user's settings.voiddoExit(int returnCode)Exits the application.voidremoveExiterListener(@NotNull ExiterListener listener)Removes anExiterListenerto be notified.
-
-
-
Method Detail
-
addExiterListener
public void addExiterListener(@NotNull @NotNull ExiterListener listener)Description copied from interface:ExiterAdds anExiterListenerto be notified.- Specified by:
addExiterListenerin interfaceExiter- Parameters:
listener- the listener
-
removeExiterListener
public void removeExiterListener(@NotNull @NotNull ExiterListener listener)Description copied from interface:ExiterRemoves anExiterListenerto be notified.- Specified by:
removeExiterListenerin interfaceExiter- Parameters:
listener- the listener
-
doExit
public void doExit(int returnCode)
Description copied from interface:ExiterExits the application.
-
callExit
public static void callExit(int returnCode)
CallsSystem.exit(int)or does nothing depending on the user's settings.- Parameters:
returnCode- the return code to pass
-
-