public class LoadFileAction extends AbstractSaveUnsavedChangesAction
URIChooser and loads the selected URI into the active view.
 This action is called when the user selects the Load item in the File menu. The menu item is automatically created by the application. A Recent Files sub-menu is also automatically generated.
 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, NewWindowAction, LoadFileAction,
 LoadDirectoryAction and CloseFileAction.
 This action should not be used together with OpenFileAction.
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ID | 
ENABLED_PROPERTY, VIEW_PROPERTY| Constructor and Description | 
|---|
| LoadFileAction(Application app,
              View view)Creates a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | doIt(View view) | 
| protected URIChooser | getChooser(View view) | 
| void | loadViewFromURI(View view,
               java.net.URI uri,
               URIChooser chooser) | 
actionPerformed, saveView, saveViewToURIgetActiveView, getApplication, getPropertyName, installViewListeners, isEnabled, setEnabled, setPropertyName, uninstallViewListeners, updateEnabled, updateView, updateViewpublic static final java.lang.String ID
public LoadFileAction(Application app, View view)
protected URIChooser getChooser(View view)
getChooser in class AbstractSaveUnsavedChangesActionpublic void doIt(View view)
doIt in class AbstractSaveUnsavedChangesActionpublic void loadViewFromURI(View view, java.net.URI uri, URIChooser chooser)