csheets.ui.ctrl
Class ExitAction
java.lang.Object
javax.swing.AbstractAction
csheets.ui.ctrl.BaseAction
csheets.ui.ctrl.SaveAsAction
csheets.ui.ctrl.SaveAction
csheets.ui.ctrl.CloseAction
csheets.ui.ctrl.CloseAllAction
csheets.ui.ctrl.ExitAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class ExitAction
- extends CloseAllAction
An action for terminating the application.
- Author:
- Einar Pehrson
- See Also:
- Serialized Form
ExitAction
public ExitAction(CleanSheets app,
UIController uiController,
FileChooser chooser)
- Creates a new exit action.
- Parameters:
app - the CleanSheets applicationuiController - the user interface controllerchooser - the file chooser to use when prompting the user for the file to save
getName
protected String getName()
- Description copied from class:
BaseAction
- Returns the action's name.
- Overrides:
getName in class CloseAllAction
- Returns:
- the action's name, which is used as short description and action command
defineProperties
protected void defineProperties()
- Description copied from class:
BaseAction
- Defines the action's properties.
- Overrides:
defineProperties in class CloseAllAction
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener- Overrides:
actionPerformed in class CloseAllAction