UTJML

edu.utep.cs.utjml.canica.jmleditor
Interface FileAccessable

All Known Implementing Classes:
FileAccess

public interface FileAccessable

This class provides the services that access a file. 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.

Author:
Angelica B Perez, Apr 25, 2006

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 currentDir)
          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.
 

Method Detail

createNewFile

void createNewFile()
Creates a new empty file in the JML editor


createNewFile

void createNewFile(String currentDir)
Creates a new empty file in the JML editor giving the path where to create it.


openFile

void openFile()
Opens an existing file to the JML editor, asking for the file name.


openFile

void openFile(File file)
Opens an existing file, giving the absolute file name.


saveFile

void saveFile()
Saves the changes of the active editing file.


saveAs

void saveAs()
Saves the contents of the active editing file into a new file, which name is provided by the user.


saveAllFiles

void saveAllFiles()
Saves all files opened in the JML editor.


closeFile

void closeFile()
Close the actual editing file in the JML editor.


closeFile

void closeFile(File file)
Close the file given.

Parameters:
file - File given.

closeAllFiles

void closeAllFiles()
Closes all files opened in the JML editor.


printFile

void printFile()
Prints the active editing file


printerSetup

void printerSetup()
Calls the printer setup


UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.