|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
mvp.Model
caltool.caldb.CalendarDB
public class CalendarDB
The CalendarDB is the top-level data class for the Calendar Tool. It encapsulates the following structures: a list of references to the calendars for all registered users; the user, group, and room databases; a global options list containing the calendar options common by default for all users; the user workspace, which in turn contains the collection of active calendars upon which the current user is working.
| Field Summary | |
|---|---|
protected GlobalOptions |
globalOptions
Set of calendar options common by default for all users, both registered and non-registered |
protected GroupDB |
groupDB
User group data base |
protected RoomDB |
roomDB
Room data base |
protected UserCalendars |
userCalendars
List of UserCalendars for all registered users |
protected UserDB |
userDB
Registered user data base |
protected UserWorkSpace |
workspace
Active calendars upon which the current user is working. |
| Fields inherited from class mvp.Model |
|---|
view |
| Constructor Summary | |
|---|---|
CalendarDB()
Construct this by constructing and initializing all components. |
|
| Method Summary | |
|---|---|
UserCalendar |
getCurrentCalendar()
Return the currently active calendar in the workspace. |
Date |
getSelectedDate()
Get the currently selected date. |
void |
setSelectedDate(Date date)
Set the currently selected date to the given date. |
| Methods inherited from class mvp.Model |
|---|
dump, exit, 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 UserCalendars userCalendars
protected UserDB userDB
protected GroupDB groupDB
protected RoomDB roomDB
protected GlobalOptions globalOptions
protected UserWorkSpace workspace
| Constructor Detail |
|---|
public CalendarDB()
| Method Detail |
|---|
public UserCalendar getCurrentCalendar()
public Date getSelectedDate()
public void setSelectedDate(Date date)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||