|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
mvp.Model
caltool.CalendarTool
public class CalendarTool
Class CalendarTool is the top-level model class for the regular-user Calendar Tool program. CalendarTool has references to the functional model classes of the tool: File, Edit, Schedule, View, Admin, Options, and Help. There is also a reference to the CalendarDB class that houses the tool's major data bases.
The CalendarTool class also has the main method for the program. This method contructs the top-level model, view, and process classes. It then shows the top-level UI and let's the Java event loop take it from there.
Functionalitywise, all of the model classes are autonomous units. They each do their own work as invoked by the user. All that this top-level class does is to construct the work-doing model classes and set up the initial state of the tool when it is invoked from the outside operating system.
See also the companion view class CalendarToolUI.
Field Summary | |
---|---|
protected Admin |
admin
Calendar administration module |
protected CalendarDB |
caldb
Calendar database |
protected View |
calView
Calendar viewing module |
protected Edit |
edit
Basic editing module |
protected File |
file
File-handling module |
protected Help |
help
Tool help module |
protected Options |
options
Tool options module |
protected Schedule |
schedule
Scheduling module |
Fields inherited from class mvp.Model |
---|
view |
Constructor Summary | |
---|---|
CalendarTool(CalendarToolUI calToolUI)
Construct this with the given companion view. |
Method Summary | |
---|---|
void |
exit()
Implement the exit method to pass the buck to file.exit(). |
Admin |
getAdmin()
Return the Admin model. |
View |
getCalView()
Return the View model. |
Edit |
getEdit()
Return the Edit model. |
File |
getFile()
Return the File model. |
Help |
getHelp()
Return the Help model. |
Options |
getOptions()
Return the Options model. |
Schedule |
getSchedule()
Return the Schedule model. |
static void |
main(java.lang.String[] args)
Construct models, construct views, compose views, and fire the puppy up. |
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 |
---|
protected File file
protected Edit edit
protected Schedule schedule
protected View calView
protected Admin admin
protected Options options
protected Help help
protected CalendarDB caldb
Constructor Detail |
---|
public CalendarTool(CalendarToolUI calToolUI)
Method Detail |
---|
public void exit()
exit
in class mvp.Model
public static void main(java.lang.String[] args)
public File getFile()
public Edit getEdit()
public Schedule getSchedule()
public View getCalView()
public Admin getAdmin()
public Options getOptions()
public Help getHelp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |