|
||||||||||
| 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.OpenAction
public class OpenAction
An action for opening a spreadsheet.
| Field Summary | |
|---|---|
protected CleanSheets |
app
The CleanSheets application |
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 | |
|---|---|
OpenAction(CleanSheets app,
UIController uiController,
FileChooser chooser)
Creates a new open action. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
protected void |
defineProperties()
Defines the action's properties. |
File |
getFile()
Returns the file to open. |
protected String |
getName()
Returns the action's name. |
| Methods inherited from class csheets.ui.ctrl.BaseAction |
|---|
requiresFile, requiresModification, showErrorDialog |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| 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
| Constructor Detail |
|---|
public OpenAction(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 open| Method Detail |
|---|
protected String getName()
BaseAction
getName in class BaseActionprotected void defineProperties()
BaseAction
defineProperties in class BaseActionpublic void actionPerformed(ActionEvent event)
public File getFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||