public class ExportFileAction extends AbstractViewAction
This action requires that ApplicationModel.createExportChooser(org.jhotdraw.app.Application, org.jhotdraw.app.View)
creates an appropriate URIChooser
.
This action is called when the user selects the Export 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 an action
with this ID 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 |
---|
ExportFileAction(Application app,
View view)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
protected void |
exportView(View view,
java.net.URI uri,
URIChooser chooser) |
getActiveView, getApplication, getPropertyName, installViewListeners, isEnabled, setEnabled, setPropertyName, uninstallViewListeners, updateEnabled, updateView, updateView
public static final java.lang.String ID
public ExportFileAction(Application app, View view)
public void actionPerformed(java.awt.event.ActionEvent evt)
protected void exportView(View view, java.net.URI uri, URIChooser chooser)