|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StandardDocument
| Method Summary | |
|---|---|
void |
addDocumentChangeListener(DocumentChangeListener listener)
Registers this listener to recieve events when the document changes. |
void |
finishBatchChange()
Turn on notification of changes again, and if the model has changed in the interim (and there are no more change events on the stack), fire an event. |
java.io.File |
getFile()
Returns the file associated with this document |
boolean |
isChanged()
|
void |
removeDocumentChangeListener(DocumentChangeListener listener)
Unregisters this listener from recieving events when the document changes. |
void |
resetChanged()
|
void |
save()
Save the data file to the current file (obtained by getFile()). |
void |
saveAs(java.io.File file)
Prompt the user for a different file, and save the model to that file. |
void |
setChanged()
|
void |
setFile(java.io.File file)
Sets the file associated with this document |
void |
startBatchChange()
Turn off notification of changes to the data model, pending the start of many change operations. |
| Method Detail |
|---|
boolean isChanged()
void setChanged()
void resetChanged()
java.io.File getFile()
void setFile(java.io.File file)
file - void startBatchChange()
void finishBatchChange()
void save()
throws DocumentSaveException
DocumentSaveException
void saveAs(java.io.File file)
throws DocumentSaveException
file - File to save to
DocumentSaveExceptionvoid addDocumentChangeListener(DocumentChangeListener listener)
listener - void removeDocumentChangeListener(DocumentChangeListener listener)
listener -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||