public class YearlyCalendar
extends mvp.Model
Since the yearly calendar contains no scheduled data itself, there is no need for any model data storage here. Rather, the access methods consult the calendar db to dynamically generate the date number values for each month.
| Modifier and Type | Field and Description |
|---|---|
protected int |
yearNumber
The number of the year, between 0 and 9999
|
| Constructor and Description |
|---|
YearlyCalendar(CalendarDB calDB)
Construct this with the given CalendarDB.
|
| Modifier and Type | Method and Description |
|---|---|
DayName |
getFirstDay(MonthName month)
Return the first day of the given month.
|
int |
getNumberOfDays(MonthName month)
Return the number of days in the given month.
|
int |
getNumberOfWeeks(MonthName month)
Return the number of weeks in the given month.
|
int |
getYearNumber()
Return the year number.
|
void |
update(java.util.Observable o,
java.lang.Object arg)
Update this' data based on the current selection in the current
calendar.
|
public YearlyCalendar(CalendarDB calDB)
public int getYearNumber()
public DayName getFirstDay(MonthName month)
public int getNumberOfWeeks(MonthName month)
public int getNumberOfDays(MonthName month)
public void update(java.util.Observable o,
java.lang.Object arg)