|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
csheets.ui.ctrl.BaseAction
csheets.ui.ctrl.SaveAsAction
public class SaveAsAction
An action for saving a spreadsheet to a user-supplied file.
| Field Summary | |
|---|---|
protected CleanSheets |
app
The CleanSheets application |
protected FileChooser |
chooser
The file chooser to use when prompting the user for the file to save |
protected UIController |
uiController
The user interface controller |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
SaveAsAction(CleanSheets app,
UIController uiController,
FileChooser chooser)
Creates a new save as action. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
protected void |
defineProperties()
Defines the action's properties. |
protected String |
getName()
Returns the action's name. |
protected boolean |
requiresFile()
Returns whether the action requires the active workbook to be stored in a file in order to be enabled. |
void |
setEnabled(boolean enabled)
|
| Methods inherited from class csheets.ui.ctrl.BaseAction |
|---|
requiresModification, showErrorDialog |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CleanSheets app
protected UIController uiController
protected FileChooser chooser
| Constructor Detail |
|---|
public SaveAsAction(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 save| Method Detail |
|---|
protected String getName()
BaseAction
getName in class BaseActionprotected void defineProperties()
BaseAction
defineProperties in class BaseActionpublic void actionPerformed(ActionEvent e)
public void setEnabled(boolean enabled)
setEnabled in interface ActionsetEnabled in class AbstractActionprotected boolean requiresFile()
BaseAction
requiresFile in class BaseAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||