uk.ac.essex.common.gui
Interface ApplicationFile<T>

All Known Implementing Classes:
ApplicationFileImpl, ApplicationFileImpl, ImageFile, OperationFile

public interface ApplicationFile<T>

This class represents an Application File. This files represent objects that can be opened in an application.
Date: Jun 9, 2002


Method Summary
 T getData()
          Get the object that contains the data for this file
 java.io.File getFile()
          Get the java.io.File that this object is bound too
 java.lang.String getName()
           
 boolean hasFile()
           
 boolean isModified()
          Is this file modified, ie/ it needs saving.
 void setData(T data)
           
 void setFile(java.io.File file)
          Set the java.io.File that this object is bound too
 void setModified(boolean modified)
          Sets the modifed flag on this file
 void setUseFullPathForName(boolean useFullPath)
           
 

Method Detail

getFile

java.io.File getFile()
Get the java.io.File that this object is bound too

Returns:

setFile

void setFile(java.io.File file)
Set the java.io.File that this object is bound too

Parameters:
file -

hasFile

boolean hasFile()
Returns:

getName

java.lang.String getName()
Returns:

setUseFullPathForName

void setUseFullPathForName(boolean useFullPath)
Parameters:
useFullPath - - true to use the files full path for this files name

getData

T getData()
Get the object that contains the data for this file

Returns:

setData

void setData(T data)
Parameters:
data -

isModified

boolean isModified()
Is this file modified, ie/ it needs saving.

Returns:
boolean - true if this is modified, false otherwise

setModified

void setModified(boolean modified)
Sets the modifed flag on this file

Parameters:
modified -