|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DocumentManager interface. If you're using a DocumentControl, you'll need to have your document object implement this interface and store a reference in the docctrl.
Method Summary | |
void |
closeDocument()
Tells the Document object to close the current document. |
java.lang.String |
decorateFilename(java.lang.String filename)
Many apps have a standard document extension, e.g. ".map". |
boolean |
isDirty()
Returns true if the document has been modified. |
void |
loadDocument(java.lang.String filename)
Tells the Document object to open the specified document. |
void |
newDocument()
Tells the Document object to create a new, empty document. |
void |
saveDocument(java.lang.String filename)
Tells the document to save itself to the specified file. |
void |
setDirty(boolean isDirty)
Specifies whether the document has been modified. |
Method Detail |
public boolean isDirty()
public void setDirty(boolean isDirty)
isDirty
- true if the document is now dirty.public void newDocument()
public void closeDocument()
public void loadDocument(java.lang.String filename)
filename
- the full path to the document to openpublic void saveDocument(java.lang.String filename)
filename
- the file to save to (absolute path)public java.lang.String decorateFilename(java.lang.String filename)
filename
- the filename the user typed in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |