|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
mvp.Model
scheduler.file.File
public class File
Class File is the model class for the scheduler Tool file handling. It contains methods for all of the operations defined on the File menu, which constitute the functional command group for file handling.
Field Summary | |
---|---|
(package private) SQLDB |
schedDB
The schedulerDB, containing the data to be stored onto files and into which file data are read. |
Fields inherited from class mvp.Model |
---|
view |
Constructor Summary | |
---|---|
File()
|
|
File(mvp.View view,
SQLDB schedDB)
Construct this with the given companion view and the parent schedulerDB model. |
Method Summary | |
---|---|
void |
close()
Close the current scheduler if it does not require saving. |
void |
closeAll()
Close the all open schedulers if they do not require saving. |
void |
exit()
Exit the scheduler Tool. |
void |
fileNew()
Add a new empty scheduler to the workspace and make it current. |
void |
open(java.lang.String filename)
Open an existing scheduler file of the given name and put the data from that file in the workspace. |
void |
print(PrintSpecs printSpecs)
Print the current scheduler per the given print specs. |
void |
save()
If the current scheduler in the workspace requires saving, save it. |
void |
saveAll()
For each open scheduler in the workspace, save it if it requires saving. |
void |
saveAs(java.lang.String filename)
Save the current scheduler in a file of the given name. |
void |
saveConfig()
Save the current workspace configuration, including the positions of all open view windows. |
Methods inherited from class mvp.Model |
---|
dump, getView, setView |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
SQLDB schedDB
Constructor Detail |
---|
public File(mvp.View view, SQLDB schedDB)
public File()
Method Detail |
---|
public void fileNew()
public void open(java.lang.String filename)
public void close()
public void closeAll()
public void save()
public void saveAs(java.lang.String filename)
public void saveAll()
public void saveConfig()
public void print(PrintSpecs printSpecs)
public void exit()
exit
in class mvp.Model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |