public class DefaultStoragePolicy extends AbstractStoragePolicy
Constructor and Description |
---|
DefaultStoragePolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
close(Document d)
Close the document.
|
JFileChooser |
getFileChooser()
Deprecated.
Use getOpenFileChooser() or getSaveFileChooser()
|
JFileChooser |
getOpenFileChooser()
Get the open file chooser used by this storage policy.
|
JFileChooser |
getSaveFileChooser()
Get the save file chooser used by this storage policy.
|
Document |
open(Application app)
Open a new document.
|
Document |
open(File file,
Application app)
Open a file and create a new document.
|
Document |
open(URL url,
Application app)
Open a URL and create a new document.
|
boolean |
save(Document d)
Save the document.
|
boolean |
saveAs(Document d)
Save the document to a user-specified location.
|
getDirectory, setDirectory, setDirectory
public boolean close(Document d)
public JFileChooser getOpenFileChooser()
public JFileChooser getFileChooser()
public JFileChooser getSaveFileChooser()
public Document open(Application app)
public Document open(File file, Application app)
public Document open(URL url, Application app)
public boolean save(Document d)
public boolean saveAs(Document d)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.