org.jhotdraw.app.action.file
Class LoadDirectoryAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jhotdraw.app.action.AbstractViewAction
-
- org.jhotdraw.app.action.AbstractSaveUnsavedChangesAction
-
- org.jhotdraw.app.action.file.LoadFileAction
-
- org.jhotdraw.app.action.file.LoadDirectoryAction
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class LoadDirectoryAction extends LoadFileAction
Les the user save unsaved changes of the active view, then presents anURIChooserand then loads the selected URI into the active view.This action is called when the user selects the Load Directory item in the File menu. The menu item is automatically created by the 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,LoadDirectoryActionandCloseFileAction. This action should not be used together withOpenDirectoryAction.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringID-
Fields inherited from class org.jhotdraw.app.action.AbstractViewAction
ENABLED_PROPERTY, VIEW_PROPERTY
-
-
Constructor Summary
Constructors Constructor and Description LoadDirectoryAction(Application app, View view)Creates a new instance.
-
Method Summary
-
Methods inherited from class org.jhotdraw.app.action.file.LoadFileAction
doIt, loadViewFromURI
-
Methods inherited from class org.jhotdraw.app.action.AbstractSaveUnsavedChangesAction
actionPerformed
-
Methods inherited from class org.jhotdraw.app.action.AbstractViewAction
getActiveView, getApplication, isEnabled, setEnabled
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoadDirectoryAction
public LoadDirectoryAction(Application app, @Nullable View view)
Creates a new instance.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG