public class DefaultStoragePolicy extends AbstractStoragePolicy
Constructor and Description |
---|
DefaultStoragePolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
close(Document d)
Close the document.
|
javax.swing.JFileChooser |
getFileChooser()
Deprecated.
Use getOpenFileChooser() or getSaveFileChooser()
|
javax.swing.JFileChooser |
getOpenFileChooser()
Get the open file chooser used by this storage policy.
|
javax.swing.JFileChooser |
getSaveFileChooser()
Get the save file chooser used by this storage policy.
|
Document |
open(Application app)
Open a new document.
|
Document |
open(java.io.File file,
Application app)
Open a file and create a new document.
|
Document |
open(java.net.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 javax.swing.JFileChooser getOpenFileChooser()
@Deprecated public javax.swing.JFileChooser getFileChooser()
public javax.swing.JFileChooser getSaveFileChooser()
public Document open(Application app)
public Document open(java.io.File file, Application app)
public Document open(java.net.URL url, Application app)
public boolean save(Document d)
public boolean saveAs(Document d)