|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.essex.common.gui.impl.ApplicationFileImpl
public abstract class ApplicationFileImpl
This class represents an Application File. This files represent objects that
can be opened in an application.
Date: Apr 13, 2002
Field Summary | |
---|---|
protected java.lang.Object |
data
|
protected static java.lang.String |
DEFAULT_NAME
|
protected java.io.File |
file
|
protected boolean |
isModified
|
Constructor Summary | |
---|---|
|
ApplicationFileImpl()
|
protected |
ApplicationFileImpl(java.io.File file)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
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(java.lang.Object 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 |
setName(java.lang.String name)
|
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 java.lang.Object data
protected boolean isModified
Constructor Detail |
---|
public ApplicationFileImpl()
protected ApplicationFileImpl(java.io.File file)
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
public void setFile(java.io.File file)
ApplicationFile
setFile
in interface ApplicationFile
file
- - the java.io.File that this object is bound toopublic boolean hasFile()
hasFile
in interface ApplicationFile
public void setUseFullPathForName(boolean useFullPath)
setUseFullPathForName
in interface ApplicationFile
useFullPath
- - true to use the files full path for this files namepublic java.lang.String getName()
getName
in interface ApplicationFile
public java.lang.Object getData()
getData
in interface ApplicationFile
public void setData(java.lang.Object data)
setData
in interface ApplicationFile
data
- public boolean isModified()
ApplicationFile
isModified
in interface ApplicationFile
public void setModified(boolean modified)
ApplicationFile
setModified
in interface ApplicationFile
public void setName(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |