|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.gui.AbstractStoragePolicy
diva.gui.BasicStoragePolicy
public class BasicStoragePolicy
A StoragePolicy that doesn't really check for correct operation. This is a simple policy that simply closes modified documents and so on. It is recommended only for simple examples and tutorials.
Constructor Summary | |
---|---|
BasicStoragePolicy()
|
Method Summary | |
---|---|
boolean |
close(Document d)
Close the document. |
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. |
Methods inherited from class diva.gui.AbstractStoragePolicy |
---|
getDirectory, setDirectory, setDirectory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicStoragePolicy()
Method Detail |
---|
public boolean close(Document d)
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |