uk.ac.essex.common.action.impl
Class DefaultFileHandler

java.lang.Object
  extended by uk.ac.essex.common.action.impl.DefaultFileHandler
All Implemented Interfaces:
ActionHandler, FileHandler

public class DefaultFileHandler
extends java.lang.Object
implements FileHandler


Date: 15-Jul-2002


Field Summary
protected  ApplicationFrame appFrame
           
protected  ApplicationFile currentFile
           
protected  java.util.List fileList
          A list of ApplicationFile objects
protected  FileOp fileOp
           
static java.lang.String NAME
           
 
Constructor Summary
DefaultFileHandler()
           
 
Method Summary
 void addFile(ApplicationFile applicationFile)
          Adds a file to the open file list
 ApplicationFile getCurrentFile()
          Gets the currently selected file
 FileOp getFileOp()
          Gets the FileOp that is used to read/write the application files
 java.util.List getFiles()
           
 void removeFile(ApplicationFile applicationFile)
          Removes a file from the open file list
 void setCurrentFile(ApplicationFile 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

NAME

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

fileList

protected java.util.List fileList
A list of ApplicationFile objects


currentFile

protected ApplicationFile currentFile

fileOp

protected FileOp fileOp

appFrame

protected ApplicationFrame appFrame
Constructor Detail

DefaultFileHandler

public DefaultFileHandler()
Method Detail

getCurrentFile

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

Specified by:
getCurrentFile in interface FileHandler
Returns:

setCurrentFile

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

Specified by:
setCurrentFile in interface FileHandler
Parameters:
applicationFile -

addFile

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

Specified by:
addFile in interface FileHandler
Parameters:
applicationFile -

removeFile

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

Specified by:
removeFile in interface FileHandler
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
Returns:

getFiles

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