uk.ac.essex.common.action
Interface FileHandler<T extends ApplicationFile>

All Superinterfaces:
ActionHandler
All Known Implementing Classes:
DefaultFileHandler, FileHandlerImpl, IVFileHandler, OVFileHandler

public interface FileHandler<T extends ApplicationFile>
extends ActionHandler

A file handler handles actions related to file opearations
Date: 15-Jul-2002


Field Summary
static java.lang.String NAME
           
 
Method Summary
 void addFile(T guiFile)
          Adds a file to the open file list
 T getCurrentFile()
          Gets the currently selected file
 FileOp getFileOp()
          Gets the FileOp that is used to read/write the application files
 java.util.List<T> getFiles()
           
 void removeFile(T guiFile)
          Removes a file from the open file list
 void setCurrentFile(T applicationFile)
          Sets the currently selected file
 

Field Detail

NAME

static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

getCurrentFile

T getCurrentFile()
Gets the currently selected file

Returns:

setCurrentFile

void setCurrentFile(T applicationFile)
Sets the currently selected file

Parameters:
applicationFile -

addFile

void addFile(T guiFile)
Adds a file to the open file list

Parameters:
guiFile -

removeFile

void removeFile(T guiFile)
Removes a file from the open file list

Parameters:
guiFile -

getFileOp

FileOp getFileOp()
Gets the FileOp that is used to read/write the application files

Returns:

getFiles

java.util.List<T> getFiles()
Returns:
File[] an array of all the files currently open