|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.essex.common.io.FileOp<T>
uk.ac.essex.common.io.FileOpImpl<OperationFile>
uk.ac.essex.ia.opview.OperationFileOp
public class OperationFileOp
Handles the reading/writing of OperationFiles to disk
OperationJFileChooser| Field Summary |
|---|
| Fields inherited from class uk.ac.essex.common.io.FileOpImpl |
|---|
currentCaller, fileChooser, LAST_DIR, lastDir |
| Fields inherited from class uk.ac.essex.common.io.FileOp |
|---|
file |
| Constructor Summary | |
|---|---|
OperationFileOp()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDefaultEnding()
Gets the default file ending to postfix to the file name, this is only used if the file to save to has not been given by the user. |
OperationFile |
openFile(java.io.File fileToOpen)
Opens the given OperationGraph from disk |
void |
save(OperationFile applicationFile)
Save the given OperationGraph to the specified file on disk |
protected void |
saveFile()
Saves the data stored in source, in the File stored in file. |
| Methods inherited from class uk.ac.essex.common.io.FileOpImpl |
|---|
getFileChooser, hasEnding, open, saveAs, setFileChooser |
| Methods inherited from class uk.ac.essex.common.io.FileOp |
|---|
getFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationFileOp()
| Method Detail |
|---|
public OperationFile openFile(java.io.File fileToOpen)
openFile in class FileOpImpl<OperationFile>public void save(OperationFile applicationFile)
save in class FileOp<OperationFile>applicationFile - - The object to be saved should be of type OperationGraphsaveFile()public java.lang.String getDefaultEnding()
getDefaultEnding in class FileOpImpl<OperationFile>protected void saveFile()
source,
FileOp.file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||