uk.ac.essex.common.action.impl
Class FileHandlerImpl<T extends ApplicationFile>

java.lang.Object
  extended by uk.ac.essex.common.action.impl.FileHandlerImpl<T>
All Implemented Interfaces:
ActionHandler, FileHandler<T>
Direct Known Subclasses:
IVFileHandler, OVFileHandler

public class FileHandlerImpl<T extends ApplicationFile>
extends java.lang.Object
implements FileHandler<T>


Date: 15-Jul-2002


Field Summary
protected  ApplicationFrame appFrame
           
protected  T currentFile
           
protected  java.util.List<T> fileList
          A list of ApplicationFile objects
protected  FileOp fileOp
           
 
Fields inherited from interface uk.ac.essex.common.action.FileHandler
NAME
 
Constructor Summary
FileHandlerImpl()
           
 
Method Summary
 void addFile(T applicationFile)
          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 applicationFile)
          Removes a file from the open file list
 void setCurrentFile(T applicationFile)
          Sets the currently selected file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileList

protected java.util.List<T extends ApplicationFile> fileList
A list of ApplicationFile objects


currentFile

protected T extends ApplicationFile currentFile

fileOp

protected FileOp fileOp

appFrame

protected ApplicationFrame appFrame
Constructor Detail

FileHandlerImpl

public FileHandlerImpl()
Method Detail

getCurrentFile

public T getCurrentFile()
Description copied from interface: FileHandler
Gets the currently selected file

Specified by:
getCurrentFile in interface FileHandler<T extends ApplicationFile>
Returns:

setCurrentFile

public void setCurrentFile(T applicationFile)
Description copied from interface: FileHandler
Sets the currently selected file

Specified by:
setCurrentFile in interface FileHandler<T extends ApplicationFile>
Parameters:
applicationFile -

addFile

public void addFile(T applicationFile)
Description copied from interface: FileHandler
Adds a file to the open file list

Specified by:
addFile in interface FileHandler<T extends ApplicationFile>
Parameters:
applicationFile -

removeFile

public void removeFile(T applicationFile)
Description copied from interface: FileHandler
Removes a file from the open file list

Specified by:
removeFile in interface FileHandler<T extends ApplicationFile>
Parameters:
applicationFile -

getFileOp

public FileOp getFileOp()
Description copied from interface: FileHandler
Gets the FileOp that is used to read/write the application files

Specified by:
getFileOp in interface FileHandler<T extends ApplicationFile>
Returns:

getFiles

public java.util.List<T> getFiles()
Specified by:
getFiles in interface FileHandler<T extends ApplicationFile>
Returns:
File[] an array of all the files currently open