public class CloseAction extends SaveAction
app, chooser, uiController
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
CloseAction(CleanSheets app,
UIController uiController,
FileChooser chooser)
Creates a new close action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected void |
defineProperties()
Defines the action's properties.
|
protected String |
getName()
Returns the action's name.
|
protected boolean |
requiresModification()
Returns whether the action requires the active workbook to be
modified in order to be enabled.
|
requiresFile
setEnabled
showErrorDialog
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
public CloseAction(CleanSheets app, UIController uiController, FileChooser chooser)
app
- the CleanSheets applicationuiController
- the user interface controllerchooser
- the file chooser to use when prompting the user for the file to saveprotected String getName()
BaseAction
getName
in class SaveAction
protected void defineProperties()
BaseAction
defineProperties
in class SaveAction
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class SaveAction
protected boolean requiresModification()
BaseAction
requiresModification
in class SaveAction