public class NewWindowAction extends NewFileAction
This action is called when the user selects the New item in the File menu.
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)
.
This action is designed for applications which do not automatically
create a new view for each opened file. This action goes together with
ClearFileAction
, LoadFileAction
and CloseFileAction
.
It should not be used together with NewFileAction
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
NewWindowAction(Application app)
Creates a new instance.
|
actionPerformed
dispose, getApplication, installApplicationListeners, isEnabled, setEnabled, uninstallApplicationListeners, updateApplicationEnabled
public static final java.lang.String ID
public NewWindowAction(Application app)