|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.essex.common.gui.ApplicationFileImpl<T>
public abstract class ApplicationFileImpl<T>
This class represents an Application File. This files represent objects that
can be opened in an application.
Date: Apr 13, 2002
Field Summary | |
---|---|
protected T |
data
|
protected static java.lang.String |
DEFAULT_NAME
|
protected java.io.File |
file
|
protected boolean |
isModified
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
ApplicationFileImpl()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
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()
Has this object been bound to a java.io.File |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final transient java.lang.String DEFAULT_NAME
protected transient java.io.File file
protected transient java.lang.String name
protected T data
protected boolean isModified
Constructor Detail |
---|
public ApplicationFileImpl()
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- - The object to test for equality
file
and data
fields are equal.public java.io.File getFile()
ApplicationFile
getFile
in interface ApplicationFile<T>
public void setFile(java.io.File file)
ApplicationFile
setFile
in interface ApplicationFile<T>
file
- - the java.io.File that this object is bound toopublic boolean hasFile()
hasFile
in interface ApplicationFile<T>
public void setUseFullPathForName(boolean useFullPath)
setUseFullPathForName
in interface ApplicationFile<T>
useFullPath
- - true to use the files full path for this files namepublic java.lang.String getName()
getName
in interface ApplicationFile<T>
public T getData()
getData
in interface ApplicationFile<T>
public void setData(T data)
setData
in interface ApplicationFile<T>
data
- public boolean isModified()
ApplicationFile
isModified
in interface ApplicationFile<T>
public void setModified(boolean modified)
ApplicationFile
setModified
in interface ApplicationFile<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |