Gridarta Editor
net.sf.gridarta.mainactions.DefaultExiter Class Reference

Exits the application. More...

+ Inheritance diagram for net.sf.gridarta.mainactions.DefaultExiter:
+ Collaboration diagram for net.sf.gridarta.mainactions.DefaultExiter:

Public Member Functions

void addExiterListener (@NotNull final ExiterListener listener)
 Adds an ExiterListener to be notified. More...
 
 DefaultExiter (@NotNull final Window mainViewFrame)
 Creates a new instance. More...
 
void doExit (final int returnCode)
 Exits the application. More...
 
void removeExiterListener (@NotNull final ExiterListener listener)
 Removes an ExiterListener to be notified. More...
 

Static Public Member Functions

static void callExit (final int returnCode)
 Calls System#exit(int) or does nothing depending on the user's settings. More...
 

Private Attributes

final EventListenerList2< ExiterListenerexiterListeners = new EventListenerList2<>(ExiterListener.class)
 The ExiterListeners to notify. More...
 
final Window mainViewFrame
 The main window's frame. More...
 

Static Private Attributes

static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
 The ActionBuilder. More...
 
static final Category LOG = Logger.getLogger(DefaultExiter.class)
 The logger for printing log messages. More...
 
static final Preferences PREFERENCES = Preferences.userNodeForPackage(MainControl.class)
 The Preferences. More...
 

Detailed Description

Exits the application.

Author
Andreas Kirschbaum

Definition at line 42 of file DefaultExiter.java.

Constructor & Destructor Documentation

◆ DefaultExiter()

net.sf.gridarta.mainactions.DefaultExiter.DefaultExiter ( @NotNull final Window  mainViewFrame)

Creates a new instance.

Parameters
mainViewFramethe main window's frame

Definition at line 78 of file DefaultExiter.java.

References net.sf.gridarta.mainactions.DefaultExiter.mainViewFrame.

Member Function Documentation

◆ addExiterListener()

void net.sf.gridarta.mainactions.DefaultExiter.addExiterListener ( @NotNull final ExiterListener  listener)

Adds an ExiterListener to be notified.

Parameters
listenerthe listener

Implements net.sf.gridarta.utils.Exiter.

Definition at line 83 of file DefaultExiter.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.add().

+ Here is the call graph for this function:

◆ callExit()

◆ doExit()

void net.sf.gridarta.mainactions.DefaultExiter.doExit ( final int  returnCode)

Exits the application.

Parameters
returnCodethe application's return code

Implements net.sf.gridarta.utils.Exiter.

Definition at line 93 of file DefaultExiter.java.

References net.sf.gridarta.mainactions.DefaultExiter.callExit(), and net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.getListeners().

+ Here is the call graph for this function:

◆ removeExiterListener()

void net.sf.gridarta.mainactions.DefaultExiter.removeExiterListener ( @NotNull final ExiterListener  listener)

Removes an ExiterListener to be notified.

Parameters
listenerthe listener

Implements net.sf.gridarta.utils.Exiter.

Definition at line 88 of file DefaultExiter.java.

References net.sf.gridarta.utils.EventListenerList2< T extends EventListener >.remove().

+ Here is the call graph for this function:

Member Data Documentation

◆ ACTION_BUILDER

final ActionBuilder net.sf.gridarta.mainactions.DefaultExiter.ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
staticprivate

The ActionBuilder.

Definition at line 48 of file DefaultExiter.java.

◆ exiterListeners

final EventListenerList2<ExiterListener> net.sf.gridarta.mainactions.DefaultExiter.exiterListeners = new EventListenerList2<>(ExiterListener.class)
private

The ExiterListeners to notify.

Definition at line 72 of file DefaultExiter.java.

◆ LOG

final Category net.sf.gridarta.mainactions.DefaultExiter.LOG = Logger.getLogger(DefaultExiter.class)
staticprivate

The logger for printing log messages.

Definition at line 54 of file DefaultExiter.java.

◆ mainViewFrame

final Window net.sf.gridarta.mainactions.DefaultExiter.mainViewFrame
private

The main window's frame.

Definition at line 66 of file DefaultExiter.java.

Referenced by net.sf.gridarta.mainactions.DefaultExiter.DefaultExiter().

◆ PREFERENCES

final Preferences net.sf.gridarta.mainactions.DefaultExiter.PREFERENCES = Preferences.userNodeForPackage(MainControl.class)
staticprivate

The Preferences.

Definition at line 60 of file DefaultExiter.java.


The documentation for this class was generated from the following file: