public class File
extends mvp.Model
| Constructor and Description |
|---|
File(mvp.View view,
CalendarDB calDB,
CalendarTool calTool)
Construct this with the given companion view and the parent CalendarDB
model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current calendar if it does not require saving.
|
void |
closeAll()
Close the all open calendars if they do not require saving.
|
void |
dumpUserCal()
Temporary system test method to dump out the current user calendar to
stdout.
|
void |
exit()
Exit the Calendar Tool.
|
void |
fileNew()
Add a new empty calendar to the workspace and make it current.
|
void |
localFiles()
Set the local files directory in which standard Calendar Tool files are stored.
|
void |
open(java.lang.String filename)
Open an existing calendar file of the given name and put the data from
that file in the workspace.
|
void |
print()
Install the given page setup info.
|
void |
print(PrintSpecs printSpecs)
Print the current calendar per the given print specs.
|
void |
save()
If the current calendar in the workspace requires saving, save it.
|
void |
saveAll()
For each open calendar in the workspace, save it if it requires saving.
|
void |
saveAs(java.lang.String filename)
Save the current calendar in a file of the given name.
|
void |
saveConfig()
Save the current workspace configuration, including the positions of all
open view windows.
|
public File(mvp.View view,
CalendarDB calDB,
CalendarTool calTool)
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 localFiles()
public void print()
public void print(PrintSpecs printSpecs)
public void exit()
exit in class mvp.Modelpublic void dumpUserCal()