|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileSaveSelector
An interface to give GlobalModel a file to save a document to.
| Method Summary | |
|---|---|
java.io.File |
getFile()
Returns the file to save. |
boolean |
shouldSaveAfterFileMoved(OpenDefinitionsDocument doc,
java.io.File oldFile)
Confirms whether a new file should be selected since the previously chosen file has been deleted or moved. |
boolean |
shouldUpdateDocumentState()
Return true if saving should update the document's state (i.e. |
boolean |
verifyOverwrite(java.io.File f)
Confirms whether the existing chosen file should be overwritten. |
boolean |
warnFileOpen(java.io.File f)
Informs the user that the chosen file is already open and prompts them asking whether to continue with the save |
| Method Detail |
|---|
java.io.File getFile()
throws OperationCanceledException
OperationCanceledException - if the save request is cancelledboolean warnFileOpen(java.io.File f)
f - the file being saved
boolean verifyOverwrite(java.io.File f)
f - the file being saved
boolean shouldSaveAfterFileMoved(OpenDefinitionsDocument doc,
java.io.File oldFile)
oldFile - The file that was moved or deleted.boolean shouldUpdateDocumentState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||