uk.ac.essex.ia.opview
Class OVFileHandler

java.lang.Object
  extended by uk.ac.essex.common.action.impl.FileHandlerImpl<OperationFile>
      extended by uk.ac.essex.ia.opview.OVFileHandler
All Implemented Interfaces:
java.util.EventListener, ActionHandler, FileHandler<OperationFile>, ViewChangeListener

public class OVFileHandler
extends FileHandlerImpl<OperationFile>
implements ViewChangeListener


Date: 15-Jul-2002


Field Summary
protected  ApplicationFrame appFrame
           
 
Fields inherited from class uk.ac.essex.common.action.impl.FileHandlerImpl
currentFile, fileList
 
Fields inherited from interface uk.ac.essex.common.action.FileHandler
NAME
 
Constructor Summary
OVFileHandler(ApplicationFrame opFrame)
           
 
Method Summary
 void addFile(OperationFile iaFile)
          Adds a file to the open file list
 void fireViewChanged(javax.swing.JPanel oldView, javax.swing.JPanel newView)
          This event is fired in response to view change in an MDI application
 void fireViewClosed(javax.swing.JPanel view)
           
 OperationFile getCurrentFile()
          Gets the currently selected file
 FileOp getFileOp()
          Gets the FileOp that is used to read/write the application files
 void removeFile(OperationFile iaFile)
          Removes a file from the open file list
 
Methods inherited from class uk.ac.essex.common.action.impl.FileHandlerImpl
getFiles, setCurrentFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appFrame

protected ApplicationFrame appFrame
Constructor Detail

OVFileHandler

public OVFileHandler(ApplicationFrame opFrame)
Parameters:
opFrame -
Method Detail

addFile

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

Specified by:
addFile in interface FileHandler<OperationFile>
Overrides:
addFile in class FileHandlerImpl<OperationFile>
Parameters:
iaFile -

getCurrentFile

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

Specified by:
getCurrentFile in interface FileHandler<OperationFile>
Overrides:
getCurrentFile in class FileHandlerImpl<OperationFile>
Returns:

removeFile

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

Specified by:
removeFile in interface FileHandler<OperationFile>
Overrides:
removeFile in class FileHandlerImpl<OperationFile>

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<OperationFile>
Overrides:
getFileOp in class FileHandlerImpl<OperationFile>
Returns:

fireViewChanged

public void fireViewChanged(javax.swing.JPanel oldView,
                            javax.swing.JPanel newView)
This event is fired in response to view change in an MDI application

Specified by:
fireViewChanged in interface ViewChangeListener

fireViewClosed

public void fireViewClosed(javax.swing.JPanel view)
Specified by:
fireViewClosed in interface ViewChangeListener
Parameters:
view -