Class GraphLoadAction
java.lang.Object
javax.swing.AbstractAction
com.marginallyclever.donatello.actions.undoable.GraphLoadAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Launches a "select file to open" dialog and attempts to load the Graph
from disk.
Use commitLoad(java.io.File)
to load a file without a dialog.
- Since:
- 2022-02-21
- Author:
- Dan Royer
- See Also:
-
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionGraphLoadAction
(RecentFilesMenu menu, String filePath, Donatello editor) Constructor for subclasses to call. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
commitLoad
(File selectedFile) void
setSaveScene
(com.marginallyclever.donatello.actions.GraphSaveAsAction saveScene) Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
GraphLoadAction
Constructor for subclasses to call.- Parameters:
filePath
- the name of this action visible on buttons and menu items.editor
- the editor affected by this Action.
-
-
Method Details
-
actionPerformed
-
commitLoad
-
setSaveScene
public void setSaveScene(com.marginallyclever.donatello.actions.GraphSaveAsAction saveScene)
-