public class SaveFileAction extends AbstractViewAction
URIChooser
is presented.
This action is called when the user selects the Save item in the File menu. The menu item is automatically created by the application.
If you want this behavior in your application, you have to create it
and put it in your ApplicationModel
in method
ApplicationModel.initApplication(org.jhotdraw.app.Application)
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
ENABLED_PROPERTY, VIEW_PROPERTY
Constructor and Description |
---|
SaveFileAction(Application app,
View view)
Creates a new instance.
|
SaveFileAction(Application app,
View view,
boolean saveAs)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
protected URIChooser |
getChooser(View view) |
protected void |
saveViewToURI(View view,
java.net.URI file,
URIChooser chooser) |
getActiveView, getApplication, getPropertyName, installViewListeners, isEnabled, setEnabled, setPropertyName, uninstallViewListeners, updateEnabled, updateView, updateView
public static final java.lang.String ID
public SaveFileAction(Application app, View view)
public SaveFileAction(Application app, View view, boolean saveAs)
protected URIChooser getChooser(View view)
public void actionPerformed(java.awt.event.ActionEvent evt)
protected void saveViewToURI(View view, java.net.URI file, URIChooser chooser)