|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.file.Project
public class Project
A project file that stores the LogWindow instance, DatasheetTabbedPane instance,as well as generated charts of this application.
Field Summary | |
---|---|
static java.lang.String |
extension
|
Constructor Summary | |
---|---|
Project(Statcato app)
Constructor. |
Method Summary | |
---|---|
void |
autoSaveWrite()
Writes project file to the temporary file path. |
boolean |
close()
If the project is not yet saved, prompts the user to save. |
boolean |
exists()
Returns whether this project exists (is valid). |
void |
exit()
Deletes temporary file if it exists. |
java.io.File |
getFile()
Returns the saved project file. |
java.lang.String |
getName()
Returns the name of this project. |
boolean |
isModified()
Returns true if the project is modified since the last save. |
boolean |
readFile(java.lang.String path)
Read a project file from the given path. |
void |
setAutoSaveInterval(int seconds)
Sets the auto save interval variable to the given value. |
void |
setDeleteAutoSaveFile(boolean delete)
Sets the delete auto save file boolean to the given value. |
boolean |
writeToFile(boolean saveAs)
Writes this project to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String extension
Constructor Detail |
---|
public Project(Statcato app)
app
- Parent Statcato applicationMethod Detail |
---|
public void setAutoSaveInterval(int seconds)
seconds
- number of secondspublic void setDeleteAutoSaveFile(boolean delete)
delete
- boolean indicating whether to delete auto save filepublic boolean exists()
public boolean isModified()
public boolean writeToFile(boolean saveAs)
saveAs
- whether it is an save as operation
public java.io.File getFile()
public void autoSaveWrite()
public java.lang.String getName()
public boolean readFile(java.lang.String path)
path
- project file path
public boolean close()
public void exit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |