|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.utjml.canica.jmleditor.FileAccess
public class FileAccess
The FileAccess class shall implement the services provided in the FileAccessable class. The File access functionalities are: create a new file, open a file, save a file, save all files, close a file, closes all files, print a file, and printer setup.
| Field Summary | |
|---|---|
static File |
workingDir
Working directory |
| Constructor Summary | |
|---|---|
FileAccess(JMLEditorMDI editor,
Mainable canica)
constructor |
|
| Method Summary | |
|---|---|
void |
closeAllFiles()
Closes all files opened in the JML editor. |
void |
closeFile()
Close the actual editing file in the JML editor. |
void |
closeFile(File file)
Close the file given. |
void |
createNewFile()
Creates a new empty file in the JML editor |
void |
createNewFile(String currentDirectory)
Creates a new empty file in the JML editor giving the path where to create it. |
void |
openFile()
Opens an existing file to the JML editor, asking for the file name. |
void |
openFile(File file)
Opens an existing file, giving the absolute file name. |
void |
printerSetup()
Calls the printer setup |
void |
printFile()
Prints the active editing file |
void |
saveAllFiles()
Saves all files opened in the JML editor. |
void |
saveAs()
Saves the contents of the active editing file into a new file, which name is provided by the user. |
void |
saveFile()
Saves the changes of the active editing file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static File workingDir
| Constructor Detail |
|---|
public FileAccess(JMLEditorMDI editor,
Mainable canica)
| Method Detail |
|---|
public void createNewFile()
FileAccessable
createNewFile in interface FileAccessablepublic void createNewFile(String currentDirectory)
FileAccessable
createNewFile in interface FileAccessablepublic void openFile()
FileAccessable
openFile in interface FileAccessablepublic void openFile(File file)
FileAccessable
openFile in interface FileAccessablepublic void saveFile()
FileAccessable
saveFile in interface FileAccessablepublic void saveAs()
FileAccessable
saveAs in interface FileAccessablepublic void saveAllFiles()
FileAccessable
saveAllFiles in interface FileAccessablepublic void closeFile()
FileAccessable
closeFile in interface FileAccessablepublic void closeFile(File file)
closeFile in interface FileAccessablefile - File given.public void closeAllFiles()
FileAccessable
closeAllFiles in interface FileAccessablepublic void printFile()
FileAccessable
printFile in interface FileAccessablepublic void printerSetup()
FileAccessable
printerSetup in interface FileAccessable
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||